jQuery

Code Snippet NameSort by Category CategorySort by Category Submitted BySort by Person   Date

Fake dropdown for a list

jQuery 05/13/11
Use this snippet to create a fake dropdown from <li> elements. Thanks Kyle View Code

Tags , ,

Simple jQuery News Ticker

jQuery 05/13/11
This is a cool and very simple vertical news ticker. Just set the height of your "ul#recent-posts" and set it to overflow hidden. You can then adjust the "margin-top" aspect of the setTimeout to match whatever height you need for your individual posts View Code

Tags ,

Flowplayer Overlay

jQuery 09/11/10
IE renders embeded files differently than most browsers. When using flowplayer within a jquery tools overlay, IE will continue playing the video when you close the lightbox type window, it is just hidden. The issue is that you can still hear the audio even after closing the overlay window ... View Code

Tags ,

Select All Checkboxes

jQuery 05/17/10
Need to create a checkbox that selects all checkboxes?

Make the first checkbox in your list 'All' then use the following jQuery in your scripts file:

#choice_7_1 is the ID of the "All" checkbox -- #input_2_7 is the ID of the <ul> with all of the checkboxes. View Code

Tags

Jquery simple rollover

jQuery 02/10/10
In a nutshell, this script executes rollover image swaps for your hyperlinks or images.

1) The Load jQuery block goes in the head of the document
2) The jQuery Rollover block basically changes the image using a replace function. For example, the link in the example displays the image ... View Code

Tags