Welcome To Snipplr


Everyone's Recent jQuery Snippets



0 1558 posted 17 years ago by quickredfox
A way to time how long it takes to get through a certain block of code. Good way to measure performance on the page. You could also use the built in logging functions in firebug. Not sure how they would tally up in a test.
1 2200 posted 17 years ago by 1man
Easily target elements which have certain attributes using jQuery
1 1491 posted 17 years ago by davebowker
I'm new to jQuery, so please be kind if there are any errors or redundancies in the code. The problem: Basically, we were getting tons of scammers signing up on our Kickapps hosted community. They were immediately posting dozens of RSS feeds & lin...
0 2340 posted 17 years ago by Jdonner
Just a little bit of code if u are interested in using links for form submission. I'm aware of the dangers of using links in this case, but don't really care. They're way easier to style.
0 3705 posted 17 years ago by wjbrown
Couldn't find a better way to do this, nor could I find it on teh interwebs, so here it is.
2 2288 posted 17 years ago by wjbrown
Used this on a project to determine whether images were loaded or not. In an image carousel, for example, you could test the next/clicked image before advancing the slide, and if 'loaded' wasn't 'true', you could add a "loading" class and attach a ne...
3 2110 posted 17 years ago by dougunderscorenelson
One way to fix many of the issues with IE7 is to dynamically reverse the default z-index stacking order of the elements on your page. This will ensure the elements higher in your HTML source will also have a higher z-index order on your page, solving...
3 2087 posted 17 years ago by justinseiter
Modified the code very slightly to add in cursor states for when the timeline is grabbed. Also added in (but commented out) the code to make the sliding twice as fast using a multiplier.
0 1717 posted 17 years ago by davebowker
ändern der Klasse bei checkbox aktion
1 2468 posted 17 years ago by localhorst
Quick little clientside script to pick out every 3rd image and add a class of last to it. I needed this because the images were layed out in 3 columns, adding a margin to the right hand side would leave a large gap on the right hand side which i d...
0 2354 posted 17 years ago by 1man
Text beim tippen wo anders anzeigen
1 1651 posted 17 years ago by skrippendorf
Quickly get the index of the current element. I find myself re-using this several times in a document, so I made a lil' function for it.
3 2819 posted 17 years ago by dougunderscorenelson
This is the code to add to a website to listen for the Konami Code (as implemented on jQuery.com"
6 1894 posted 17 years ago by JakeCarter
If you ever need to list all the internal functions of JQuery without the use of googling. You can always use the following command with firebug.
1 2025 posted 17 years ago by chrisjlee
Version differs slightly from the demo, as the src for the thumbnail image is a child of the demo example, so has been slightly modified.
0 1982 posted 17 years ago by davebowker
Use javascript to add a class of last onto the first and the last li tags in the navigation (add to global.js). Then use css to style. For instance, if the first li is home, you can set the css to hide this link (if you want the logo to act as your h...
5 2531 posted 17 years ago by kstetson
Div will fade in on load or fade in on click
1 2442 posted 17 years ago by kstetson
Used to share between a single instance of jQuery through iFrames. Do note, the iFrame content must originate from the same domain, or this plugin will NOT work as expected.
4 2609 posted 17 years ago by garside
A clean and simple drop down menu made in jQuery
1 2485 posted 17 years ago by Unreal
Used here: http://www.criteriondg.info/wordpress
1 1710 posted 17 years ago by Skeku
1 1501 posted 17 years ago by philokezzar
I made an absolute tinny code to find the highest z-index of absolute DIV to show my shouting box and to make it appear absolutely at the top of all html elements. I used selector of ”body > *‘ instead of ‘body *‘. ”body > *‘ means...
2 2244 posted 17 years ago by adnan
@davidlink aim: instanteggrolls
2 2400 posted 17 years ago by conspirator
1 1801 posted 17 years ago by kokikr
1 1865 posted 17 years ago by kokikr
The markup would look like this: <code> &lt;input class="swap-value" type="text" value="Search"/ &gt;</code>
2 1971 posted 17 years ago by keith
Hi, all, this is the "checkFunction" extension for jQuery. This extension takes two parameters: 1. fPointer This parameter is the "possible" function to check 1.1 This parameter can be a String that is a function poi...
1 1720 posted 17 years ago by amischol