Welcome To Snipplr


You searched for: http

Everyone's Recent JavaScript Snippets



Similar to [Get Elements by Class Name]( http://snipplr.com/view/1696/get-elements-by-class-name/), but with optional "tag" parameter. Performance is increased by first retrieving the desired tag if available.
0 953 posted 15 years ago by jasonseney
via [http://davidwalsh.name/opacity-focus](http://davidwalsh.name/opacity-focus)
0 900 posted 15 years ago by cfleschhut
<input> When used instead of my SharePoint: SaveButton above, the form saved it's data correctly, and the current page that the form was submitted from was reloaded for the user. You could also put any URL in the __redirect={} that yo...
0 861 posted 15 years ago by rumremix
via [http://ryanflorence.com/mootools-for-beginners-part-5-native-extensions/](http://ryanflorence.com/mootools-for-beginners-part-5-native-extensions/)
0 900 posted 15 years ago by cfleschhut
adopted from: http://www.alistapart.com/articles/makingcompactformsmoreaccessible/
0 989 posted 15 years ago by cfleschhut
Borrowed from Jerome Paradis: http://blog.jeromeparadis.com
0 1245 posted 15 years ago by Jamie
Documentación en: http://eric.garside.name/docs.html?p=epiclock
0 759 posted 15 years ago by arantxaortega
adapted from: [http://aktuell.de.selfhtml.org/artikel/javascript/fader-framework/bilderslideshow.htm](http://aktuell.de.selfhtml.org/artikel/javascript/fader-framework/bilderslideshow.htm)
0 938 posted 15 years ago by cfleschhut
Avoid *.js upload confusions. Use http://code.google.com/apis/ajaxlibs/
0 921 posted 15 years ago by ialexs
Also we can use HTTP_ACCEPT
0 848 posted 15 years ago by kossmoss
This is a simple effect for displaying a predefined text in a text box in web page. Download jQuery and the plugin and follows the sample code in [http://cloudgen.w0ng.hk/jquery/defaultText.php](http://cloudgen.w0ng.hk/jquery/defaultText.php "Defaul...
0 1066 posted 15 years ago by cloudgen
This is a zoom glass effect. Simply download jQuery and the plugin and apply the code as described in http://cloudgen.w0ng.hk/jquery/simple.zoomGlass.php You can found the sample in the page, too.
0 1054 posted 15 years ago by cloudgen
from this page: http://dreaminginjavascript.wordpress.com/2008/08/22/eliminating-duplicates/
0 1080 posted 15 years ago by keith
url: http://www.example.com/?foo=bar usage: $_GET['foo'] // 'bar'
0 792 posted 15 years ago by nate63179
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 1050 posted 15 years ago by roryok
Simple [SoundManager2](http://www.schillmania.com/projects/soundmanager2/doc/download/#latest "Download SoundManager2") example (uses jQuery)
0 1115 posted 15 years ago by chrisdpratt
Remedial Javascript As Proposed by Douglas Crockford (http://javascript.crockford.com/remedial.html)
0 846 posted 15 years ago by quickredfox
The canvas drawImage size default is 300 x 150, so it's using the CSS to resize the canvas. Example posted at http://pastebin.me/76aed7005b1b413ea3c479287f4dbd59
0 1534 posted 15 years ago by Motty
Save as the target of your link. Change http://assets.harkeydesign.net/css/diagnose.css to your own hosted version if you want guaranteed permanence.
1 815 posted 15 years ago by zachharkey
Runtime Object Evaluator; search for string object properties that start with !! and eval the content. Very useful if you want to load JSON from file and evaluate its fields on effective usage or access global variables at runtime. [Follow me on T...
1 743 posted 15 years ago by straps
Let's say, perhaps, that you are already forwarding your web traffic through an SSH/SOCKS tunnel at work (for privacy reasons that have absolutely no relation to accessing blocked sites LOL!) and you would like to use that same tunnel on your iPhone/...
1 7444 posted 15 years ago by shaunchapman
- a javascript for alternate row/column table striping - supports row hover, column hover and cell hover effects and click events. demo here: http://www.frequency-decoder.com/demo/table-actions/
0 997 posted 15 years ago by beneberle
Enable jQuery on any website, just clicking on a bookmarklet with this code. Or drag & drop this on your bookmark bar: <a href="javascript:(function(){var%20s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs...
4 1017 posted 15 years ago by danielfilho
Based on some comments in [StackOverflow Question](http://stackoverflow.com/questions/95875/javascript-check-to-see-if-a-variable-is-an-object "How to check if a variable is an object")
3 1222 posted 16 years ago by jasonseney
I'll never learn how to use this Markdown system. Anyway, here is the fixed code based on my comment on the following page: http://snipplr.com/view/14206/replace-spaces-with-underscores/ I'm sorry, I don't mean to hijack the code. :(
0 1101 posted 16 years ago by duniyadnd
This is my first ever bookmarklet. It's simple and could be tightened up but it works for me (FF3 Ubuntu 8.10). Oh, by the way, what it does is load gmail (if you're signed in, which I always am) with a search for the unread messages (is:unread)...
0 792 posted 16 years ago by ThomasGHenry
Here is a small function [[lobo235](http://www.netlobo.com/javascript_tooltips.html "Javascript Tool-tips")] wrote that will parse the window.location.href value and return the value for the parameter you specify. It does this using javascript's buil...
1 2781 posted 16 years ago by nelsnelson
dynamic background images flickers in IE6 *** more ressources: [here](http://misterpixel.blogspot.com/2006/09/forensic-analysis-of-ie6.html) and [here](http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B823727) and [here](http://ajaxia...
0 1051 posted 16 years ago by localhorst
Here's a quick snippet of code to raise the minimum age of your site. Note that it is illegal to lower the legal age of your site under 13. Legal Disclaimer: Affiliate shall indemnify and hold KickApps, its licensors and each such party's parent o...
0 829 posted 16 years ago by krunkosaurus
Thanks to [James]( http://www.girsbrain.org/blog ) for this code.
0 850 posted 16 years ago by zachharkey