Welcome To Snipplr
Everyone's Recent Snippets Tagged jquery
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
When applied to a page, this script converts any sub-menus created in the Wordpress menu editor into drop-down menus without having to specify each menu item individually. Fades in sub-menu of selected list item quickly, then fades out when leaving l...
2
670
posted 13 years ago by happynuclear
This function will insert items into an orders alphabetically (assuming it's already alphabetical). Initially design to make a smooth single page load/save feature that sotred everything in drop down lists, you guessed it, alphabetically. Can simply...
0
693
posted 13 years ago by FatFolderDesigner
Focus and keypress events determine when to hide, show, or dim a label.
Use in tandem with the following HTML/CSS:
HTML
----
<li>
<label>First Name</label>
<input>
</li>
CSS
----
li {
position: relative;
}
la...
0
578
posted 13 years ago by mikemetcalf
A simple way to filter lists or tables that uses a new "Contains" (note capitalization) selector to clean up the code a bit. Three examples are below, first sorts through a list, second a table, third a tabe and it correctly the alternating row color...
0
803
posted 13 years ago by FatFolderDesigner
add this line: Cufon.replace('a', { hover: true });
before your actual cufon replace.
2
508
posted 13 years ago by Savio
Updated code (December, 2012) to get a tweet from a user's twitter timeline using JSON and jQuery
3
1013
posted 13 years ago by eddequincey
Cache control when pulling in scripts, redefined "getScript" function
0
757
posted 13 years ago by lamebollock
Used on `<input>`'s and `<textarea>`'s
Several jQuery functions for getting the current cursor position and setting the current cursor position. Also allows for selecting text in a certain range.
Usage:
<pre>
$("input[name='username']").getCu...
0
558
posted 13 years ago by crutzdesigns