Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged textmate



« Prev 1 2
Activation: con Scope: source.js, source.js.jquery
0 39 posted 9 years ago by divtagged
Will convert all of the mysql dates on the page to be localized.
0 50 posted 10 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 57 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 26 posted 10 years ago by remotezygote
Thanks to [James]( http://www.girsbrain.org/blog ) for this code.
0 49 posted 11 years ago by zachharkey
2 50 posted 11 years ago by dbug13
1 35 posted 11 years ago by wesbaker
8 119 posted 11 years ago by mdi
0 47 posted 12 years ago by wbowers
0 30 posted 12 years ago by otaqui
0 43 posted 12 years ago by tjhanley
0 39 posted 13 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...
35 868 posted 13 years ago by Roshambo
redirects a splash page if visited before. Number of days until expiry can be set
0 45 posted 13 years ago by markhope
« Prev 1 2