Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 ... 40 41 42 43 44 ... 65
Select some text to translate, or don't select anything to translate the entire page.
0 1399 posted 16 years ago by wizard04
This is just a basic jQuery crossfade plugin. Should be executed on a list object (ul or ol) because it does specifically look for the li children. The plugin, as implemented, has two options, speed and pause. Speed being the speed at which the top i...
0 1279 posted 16 years ago by jdfwarrior
The Number objects value determines how often the supplied function is repeated. Inspired by ROR & Python. "Pollutes" Number's prototype.
0 1417 posted 16 years ago by peta
This is based on the [Sort Gmail Messages By Bookmarklet](http://snipplr.com/view/10432/sort-gmail-messages-by-subject/ "Sort Gmail Messages By Bookmarklet - http://snipplr.com/view/10432/sort-gmail-messages-by-subject/") snippet. Drag this int...
1 1558 posted 16 years ago by roryok
Video For Everybody is a great way to use the `<video>` tag with fallbacks for QuickTime or Flash for users with old browsers, but it requires that every video be encoded twice (once for the MP4 and once for the OGG). This code (which requires Moo...
0 1450 posted 16 years ago by Kit
Allows for delay functionality in effects, etc. $("#navpanel").delay(2000).animate({top:"-250px"}, {easing:"swing"});
2 1540 posted 16 years ago by ninjamuk
0 1385 posted 16 years ago by codegoat
0 1175 posted 16 years ago by xxc
Outputs the number of Pixels Per Inch in the current Device
0 2567 posted 16 years ago by rportela
0 1102 posted 16 years ago by rportela
pretty basic; dimensions of screen and browser display window
0 1372 posted 16 years ago by rwczippy
0 1242 posted 16 years ago by aadsm
Simple [SoundManager2](http://www.schillmania.com/projects/soundmanager2/doc/download/#latest "Download SoundManager2") example (uses jQuery)
0 1654 posted 16 years ago by chrisdpratt
0 1336 posted 16 years ago by cbek
0 1439 posted 16 years ago by arpit
Just include this script on the site and you’ll get a Firebug console that pops up for debugging in any browser. Not quite as full featured but it’s still pretty helpful! Remember to remove it when you are done.
1 1659 posted 16 years ago by paulgrenwood
Ensures all elements in an array are unique newArray = myArray.unique();
0 1197 posted 16 years ago by svenito
This extends arrays withe a removeItems operation to remove all occurances of <item> from <array> usage: myArray.removeItems("words");
0 1226 posted 16 years ago by svenito
This will get the document's body in a very agreeable manner - it returns the first div on the page if there is no body (hey it can happen). Adapted from code by Scott Schiller
0 1086 posted 16 years ago by remotezygote
Go to page, then place code in address bar and generated code will be shown in new window.
1 1879 posted 16 years ago by bionic
Read a page's GET URL variables and return them as an "associative array." Calling the function while at `example.html?foo=asdf&bar=jkls` sets `map['foo']='asdf'` and `map['bar']='jkls'`
17 11644 posted 16 years ago by the_coder
Javascript time execution utility: Use: var otd = new timeDebugger(); otd.start(); alert(otd.end());
1 1764 posted 16 years ago by marcocs
1 ... 40 41 42 43 44 ... 65