Welcome To Snipplr
Everyone's Recent Snippets Tagged jquery
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I used this simple snippet to enable users to "View More Info" which was embedded in a div below each of a list of items. This is different from many of the simple jQuery examples that only allow you to show/hide one particular div.
1
942
posted 15 years ago by aristoworks
This script preloads images in your document or lets your to preload images by their url and insert or append them in your DOM tree later.
5
870
posted 15 years ago by Uzbekjon
This was not written by me, but Jeffrey Olchovy. I uploaded it here because his blog messes up the quotes.
10
1198
posted 15 years ago by oscargodson
really simple random bg image. Save images starting at 1.jpg. Put in your jquery selector. Etc, etc.
8
1153
posted 15 years ago by ira
Extracts a string paremeter from the url query string. Basic operation wont handle multiples such as radio buttons etc. Just gets the first instance of the name and returns it's value.
1
705
posted 15 years ago by kouphax
Allows the user to bind an event into a certain position in the call stack for events.
3
1060
posted 15 years ago by garside
Great little snippit to add a <tr> to the bottom of a table. Note the use of the context in the jQuery e.g var n = $('tr:last td', this).length; Will have to use this in the future, very good to know!
4
1738
posted 15 years ago by 1man
Lets you get YouTube video scene images by video id or youtube video url using only javascript OR jQuery.
5
1995
posted 15 years ago by Uzbekjon
Appends a css class to all form input elements on a page by extracting the input type from the element in question.
0
425
posted 15 years ago by stylephreak
include document ready and standard code to run swfobject smoothly in IE6
1
885
posted 15 years ago by apro2000
A very simple plug-in I wrote to make x number of columns equal height. Looks for the column with the biggest height then sets the rest to the same. I'm sure it can be made cleaner, will look into that later.
4
1130
posted 15 years ago by 1man
Adding a namespace to an event can make it easier to unbind. It is very easy to unbind all events with the same namespace.
1
993
posted 15 years ago by 1man
Never used the index() method in jQuery but could be useful to know. Find a selected elements index when you click on it. Note the $('ul#mylist') inside the index method, gives the search some context of where to look for .selected, saves looking thr...
1
979
posted 15 years ago by 1man
jquery ui/tabs initiation ensures screenreaders can focus content when selecting tabs. Tested using Jaws 8.
3
694
posted 15 years ago by terrencewood
Simple imagefader to rotate around a few images. Seem to be doing this a lot in various projects so decided to put something a bit more generic together. Uses jQuery. Images named as car1.jpg, car2.jpg, car3..... etc.
3
1112
posted 15 years ago by 1man
[Video Example](http://screencast.com/t/L6E0xI0J5P)
A cross browser image caption on mouseover. Using jquery, CSS. This is a bit crude but pretty simple to implement. Just change the image width, some css to match that image size and create dyn...
4
1142
posted 15 years ago by jadedbat
Simple function for turning RETURN key presses into TAB key presses. Focuses input element next in the DOM (usually makes sense), unless we are at the end of the form, at which point it focuses the first element in the form for cyclical purposes.
2
2920
posted 15 years ago by kouphax
Simple jQuery snippet for cleanly and automatically setting up your google analytics
4
912
posted 15 years ago by garside
Learn how to place a DIV in the exact middle of the screen using this JQuery horizontal & vertical align plugin.
6
957
posted 15 years ago by neal_grosskopf