Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 ... 57 58 59 60 61 ... 65
This was created as a temporary solution to the wide dropdowns that sometimes appear in OpenAir timesheets and cause horizontal scrolling. Adding this script as a bookmarklet and clicking it will resize all selects (dropdowns) on a page to 340px wide...
0 522 posted 16 years ago by Todd
SEE http://json.org/ for PHP JSON Libraries. grunt knuckle drag brute force ugly escapes for quotes make a php array a json string Produces trailing commas which some Javascript Librarys can't deal with.* _*NOOB NOTE [a comma is added at the...
2 930 posted 16 years ago by inkdeep
This routine is loosely based on elightbo's "Calculate Business Days" snippet in ASP, with some process & logic modifications (most notably accounting for situations when both dates fall on a weekend) and a translation to JavaScript.
0 4252 posted 16 years ago by Bluebeard
A simple code for changing currencies using Google:)
2 616 posted 16 years ago by misnyo
Very simple drag and resize function.
1 775 posted 16 years ago by 1man
Very basic way to toggle an element to slide in and out using mootools 1.1. Uses FX.Slide, other transitions are available.
2 737 posted 16 years ago by 1man
With decimal separator "."
2 955 posted 16 years ago by arcturus
The setTimeout ensures that if there is an issue attaching the link to the bottom of the head (e.g. if the head hasn’t finished loading when the link is trying to be attached) it retries after 100ms. Resetting the css variable to null avoids potent...
1 1077 posted 16 years ago by natalie
JS Fix for IE6 background image flickering on mouseover's
2 802 posted 16 years ago by brentg
Script takes links that are not on your domain and opens them in a new window. This code allows for XHTML strict validation and meets Accessibility criteria on opening new windows.
5 873 posted 16 years ago by skatan
Needs object detection to be completely unobtrusive
3 656 posted 16 years ago by skatan
Needs to include object detection to be completely unobtrusive
1 543 posted 16 years ago by skatan
A way to call a function before the window is unloaded/refreshed/etc. Used in the first E-shot Management System. Useful for auto-saving data/content before the window is closed or refreshed.
1 744 posted 16 years ago by andyhartleeds
Include JavaSript files.
0 467 posted 16 years ago by Diego
Really stop default action of a element.
1 717 posted 16 years ago by fael
Another image preloader.
6 833 posted 16 years ago by fael
a function that returns the absolute position in DOM tree. jQuery based
1 611 posted 16 years ago by fael
Create a simple object and add properties and a method. Note where the object is parsed (not from top to bottom).
2 628 posted 16 years ago by 1man
This utility function attaches listeners to a text field or text area. It supports default text for instructional copy. The original text in the field is used as the instructional/default text. When the box gets focus, it disappears and the user can...
0 647 posted 16 years ago by elli
0 3780 posted 16 years ago by elugardo
0 529 posted 16 years ago by tjhanley
1 ... 57 58 59 60 61 ... 65