Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 ... 56 57 58 59 60 ... 65
This script can help you control the scroll of div by a simple function. Set thr property 'scrollTop' then the scoll can be controlled.
1 1668 posted 17 years ago by multani
0 1270 posted 17 years ago by iTony
Very simple style switcher using jquery. Takes 3 links with id's on each. When one is clicked various styles are removed, then a new one is added.
3 1677 posted 17 years ago by 1man
0 1072 posted 17 years ago by kristin
Adobe Air has a few security settings that stops you executing certain AIR methods when inside the sandbox. The code below bridges between the root document and the security sandbox, allowing you to open a URL in AIR in a default browser.
1 1439 posted 17 years ago by 1man
Unable to use CSS for select tag? Simple changes approve it. P.S. Don't forget about prototype framework ()
1 929 posted 17 years ago by timka
Jquery is awesome. Requires jquery!
4 1134 posted 17 years ago by lagrangeapex
Oh so sweet. A big thanks to Chris Poole for this one.
1 958 posted 17 years ago by Hanek
Apologies if I haven't explained this to well, I'm still trying to get my head round closures.
0 1063 posted 17 years ago by 1man
0 1250 posted 17 years ago by arcturus
This method allows you to call a function as a method of another object. The first argument the call method expects is the object it is to operate on. Any others are part of the function. Note how the this keyword now refers to the comp object, so a...
0 1198 posted 17 years ago by 1man
The important thing to notice is the () operator in a[2]. It is invoking the function inside a[0] with the argument a[1].
1 1305 posted 17 years ago by 1man
Every function has an object called the arguments object. This is an object that contains all the arguments that were passed to the function. The example below shows how to access these. Very rarely used but useful to know. Note: it may look like an...
2 1614 posted 17 years ago by 1man
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 1471 posted 17 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 1944 posted 17 years ago by jonhenshaw
Just call the function in an HTML element and it would flip the text in it.
1 1428 posted 17 years ago by iTony
libreria que mediante ajax y javascript permite paginar los contenidos de una tabla
0 988 posted 17 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 1270 posted 17 years ago by ChaosKaizer
using bgiframe to solve a bug in explorer: you cannot apply z-index to place divs over selects in a form!!!
1 1531 posted 17 years ago by victorchamorro
Basic usage of the in and instanceOf operators.
0 1264 posted 17 years ago by 1man
3 1547 posted 17 years ago by miziomon
1 ... 56 57 58 59 60 ... 65