Welcome To Snipplr


Everyone's Recent Snippets Tagged js



0 412 posted 11 years ago by magicrebirth
Display a default value in a text field that disappears on focus and reappears on blur **if** the field is blank.
0 285 posted 11 years ago by prsjohnny
0 414 posted 11 years ago by viatropos
JQ - detect users browser language using http headers via ajax jsonp ajaxhttpheaders
1 730 posted 12 years ago by brandonjp
1 332 posted 12 years ago by iroybot
JS to dynamically update year -- good for copyright.
0 408 posted 12 years ago by mennyj
[via rtcrm] CSS Browser Selector is a very small javascript with just one line and less than 1kb which empower CSS selectors. It gives you the ability to write specific CSS code for each operating system and each browser.
2 426 posted 12 years ago by mennyj
[via rtcrm] Since HTML5 is getting [more](http://www.brucelawson.co.uk/tests/html5-elements.html) [attention](http://adactio.com/journal/1540/) by way of marking up our new pages, and the only way to get IE to acknowledge the new elements, such as...
0 365 posted 12 years ago by mennyj
0 314 posted 12 years ago by Scriptshit
1 357 posted 12 years ago by Scriptshit
Creates a DATE and TIME object that can be places on a site. OPEN-SOURCE: Free to download, use, modify and distribute - so long as all Credits/Comments are left INTACT. If you have any thoughts, comments or ideas for this script (or another script...
1 620 posted 12 years ago by darksider
0 373 posted 12 years ago by Mosaic
SimpleSelector is a small DOM selector object with support for the most used selectors. It's also the default selector for the jLim JavaScript framework. Why use SimpleSelector? - very small, less than 2kb minified - easy to use with $$() - no...
1 514 posted 12 years ago by freelancephp
This is a simple example of OOP in Javascript, based off the highly popular Javascript "The Definitive Guide" book by David Flanagan. I will be expanding this example in the future, let me know what you'd like to see. Thanks! Note: You must have...
0 467 posted 12 years ago by alvincrespo
Just a simple snippet on how to reverse a string using a for loop.
0 377 posted 12 years ago by alvincrespo
0 447 posted 12 years ago by magicrebirth
remove and item or items from array
0 281 posted 12 years ago by edektor