Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged jquery
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The AJAX Libraries API is a content distribution network and loading architecture for the most popular, open source JavaScript libraries.
1
808
posted 14 years ago by jonkemp
Although $(document).ready is incredibly useful, it occurs during page render while objects are still downloading. You can reduce CPU utilization during the page load by binding your jQuery functions to the $(window).load event, which occurs after al...
2
700
posted 14 years ago by jonkemp
Use chaining in jQuery to reduce the code size and gain better performance.
0
687
posted 14 years ago by jonkemp
JavaScript
Advanced use of jQuery cookie plugin to show/hide a notice, includes changing the HTML text of the link
0
1230
posted 14 years ago by phil7085
This requires jQuery. The script checks to see if default text is present in a text field on focus. If it is, then it clears the text. Otherwise, it leaves user entered text intact. This is normally used for a search box.
0
831
posted 14 years ago by jonkemp
Better than previous version. You don't have to mark up your links with 'rel=external'.
0
785
posted 14 years ago by lancemonotone
JavaScript
jQuery LimitCharWidth: Allows you to collapse the inner text so that it adjust into specific width.
This plugin allows you to collapse the inner text so that it adjust into specific width or container width.
1
1086
posted 14 years ago by jaff
Dropdown navigation is fairly inaccessible as it depends on hover events in 99.9% of cases. Tabbing through the navigation with the keyboard fails to reveal the dropdowns leaving those navigation items virtually inaccessible. Worse, each of the hidde...
0
1868
posted 14 years ago by chrisdpratt
Looked for a simple, efficient cross-fading script that does it properly without fading to the background color. This script uses z-indexes to prevent the background from ever showing, creating a smooth fade.
0
647
posted 14 years ago by relaxasaurus