Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged javascript



Unable to use CSS for select tag? Simple changes approve it. P.S. Don't forget about prototype framework ()
1 1429 posted 18 years ago by timka
Apologies if I haven't explained this to well, I'm still trying to get my head round closures.
0 1681 posted 18 years ago by 1man
0 1932 posted 18 years ago by arcturus
Simple way of allowing functions to take optional arguments. Always place the optional arguments last, so you don't have to explicitly pass an argument as "undefined".
3 2112 posted 18 years ago by 1man
Getting SuperSleight running on a page is quite straightforward, you just need to link the supplied JavaScript file into your document inside conditional comments so that it is delivered to only Internet Explorer 6 or older.
3 2721 posted 18 years ago by jonhenshaw
Just call the function in an HTML element and it would flip the text in it.
1 2117 posted 18 years ago by iTony
libreria que mediante ajax y javascript permite paginar los contenidos de una tabla
0 1522 posted 18 years ago by victorchamorro
var lib = ['foo.js','foo.js','foo2.js','foo.js','foo333.js','foo2.js']; var slib = 'fooooo.js'; lib.jitScript(); // append foo.js, foo2.js & foo33.js slib.jitScript(); // append fooooo.js enable firebug console JitScriptDebug = true; val...
0 1967 posted 18 years ago by ChaosKaizer
Basic usage of the in and instanceOf operators.
0 1891 posted 18 years ago by 1man
A simple code for changing currencies using Google:)
2 1732 posted 18 years ago by misnyo
Very simple drag and resize function.
1 1962 posted 18 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 1976 posted 18 years ago by 1man
With decimal separator "."
2 2360 posted 18 years ago by arcturus
JS Fix for IE6 background image flickering on mouseover's
2 2111 posted 18 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 2621 posted 18 years ago by skatan
Needs object detection to be completely unobtrusive
3 1891 posted 18 years ago by skatan
Needs to include object detection to be completely unobtrusive
1 1696 posted 18 years ago by skatan
Include JavaSript files.
0 1438 posted 18 years ago by Diego
Create a simple object and add properties and a method. Note where the object is parsed (not from top to bottom).
2 2043 posted 19 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 1846 posted 19 years ago by elli
時間帯によって、CSSを切り替える。
0 1593 posted 19 years ago by fjm