Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged c



1 ... 52 53 54 55 56 ... 65
Set the center of the map on the person's location based on IP address. In this case the user is required to be in the USA.
0 2649 posted 18 years ago by sgraber
Atualiza janela principal após fechar Pop-UP Refresh Main window after close the Pop-Up
0 1661 posted 18 years ago by LondonWeb
0 1497 posted 18 years ago by wizard04
NOT MY CODE. I was looking for a good code that would validate the date in JavaScript and I found this function. I thought it was worth keeping so I decided to post it on here as opposed to clutter my bookmarks with one more link. Once again I take...
0 1799 posted 18 years ago by ckester
Requires Mootools 1.2<br/> http://mootools.net/download Based on the mootools javascript framework a re-usable class for easily implementing an array of on submit events. * Confirmation - Provides an Ok, Cancel input box before proceeding furt...
1 1771 posted 18 years ago by dom111
0 1641 posted 18 years ago by wizard04
2 1963 posted 18 years ago by crazylion
When there's a URL on a page that's not a link, just highlight it and click this bookmarklet. The URL will open in a new window. If there are multiple selections (e.g., if you've selected something in each of two frames on the page), they will eac...
1 1711 posted 18 years ago by wizard04
Convert a number to a different base.
0 2021 posted 18 years ago by wizard04
Uses jQuery to add a class to odd table rows, for purposes of alternating colors, etc.
1 1931 posted 18 years ago by breakerjump
Select some text, click the bookmarklet, and the definition(s) will open up in [Ninjawords](http://www.ninjawords.com). [Ninjawords](javascript:(function(&#41;{function%20t(f&#41;{try{if(f.getSelection&#41;return%20f.getSelection(&#41;.toString(&#...
0 1380 posted 18 years ago by wizard04
This simple little snippet will allow you to change two iframes with the click of just one link.
1 1879 posted 18 years ago by aristoworks
Can use without jquery
2 2692 posted 18 years ago by DesTincT
1 1715 posted 18 years ago by jamesming
1 1999 posted 18 years ago by Juego
0 1505 posted 18 years ago by fredaudet
`Events.add(element, type, handler)` adds a handler to an element `Events.remove(element, type, handler)` removes a handler from an element `Events.getTarget(event)` or `Events.getOrigin(event)` returns the element from which the event originat...
1 2173 posted 18 years ago by wizard04
1 1672 posted 18 years ago by KernelPanic
Functions to use the clipboard. Requires a Flash file for non-IE browsers: see [http://javascript.internet.com/forms/clipboard-copy.html](http://javascript.internet.com/forms/clipboard-copy.html) Remember to set `config.Clipboard.pathToFlash` a...
1 1612 posted 18 years ago by wizard04
There is no standard for this at all - this just looks for the hooks that exist in IE and gecko-type browsers. See also http://msdn.microsoft.com/en-us/library/ms535926(VS.85).aspx and http://developer.mozilla.org/en/docs/DOM:window.sidebar
3 1888 posted 18 years ago by scarfboy
Exploits hash keys uniqueness, but in doing so effectively toString()s everything, meaning this should not be used for much beyond strings and perhaps integers. I used this when I wanted to do some client-side filtering of (integer) identifiers.
1 1703 posted 18 years ago by scarfboy
Adds commas to numbers. 1234567 becomes 1,234,567
1 2558 posted 18 years ago by jdstraughan
Useful functions to get around browser incompatibilities when working with stylesheets. If you find any errors, please leave a comment.
0 1846 posted 18 years ago by wizard04
1 ... 52 53 54 55 56 ... 65