Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged textmate



« Prev 1 2
Activation: con Scope: source.js, source.js.jquery
0 10 posted 8 years ago by divtagged
Will convert all of the mysql dates on the page to be localized.
0 16 posted 9 years ago by yisreldov
In order to track links out Google requires you add this snippet of JavaScript to your anchor(a) tag. Replace /G1/example.com with whatever you want to use to identify the link.
1 19 posted 10 years ago by smoothdzion
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 10 posted 10 years ago by remotezygote
Thanks to [James]( http://www.girsbrain.org/blog ) for this code.
0 18 posted 11 years ago by zachharkey
2 18 posted 11 years ago by dbug13
1 13 posted 11 years ago by wesbaker
8 78 posted 11 years ago by mdi
0 7 posted 12 years ago by otaqui
0 22 posted 12 years ago by tjhanley
0 14 posted 12 years ago by voidlock
Read a page's GET URL variables and return them as an associative array. ---- Example for URL http://www.example.com/index.html?hello=bonjour&goodevening=bonsoir var hash = getUrlVars(); alert(hash['hello']); // prints 'bonjour' alert(hash...
34 280 posted 13 years ago by Roshambo
redirects a splash page if visited before. Number of days until expiry can be set
0 12 posted 13 years ago by markhope
« Prev 1 2