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 1063 posted 16 years ago by multani
0 648 posted 16 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 933 posted 16 years ago by 1man
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 744 posted 16 years ago by 1man
Unable to use CSS for select tag? Simple changes approve it. P.S. Don't forget about prototype framework ()
1 455 posted 16 years ago by timka
Jquery is awesome. Requires jquery!
4 566 posted 16 years ago by lagrangeapex
Oh so sweet. A big thanks to Chris Poole for this one.
1 462 posted 16 years ago by Hanek
Apologies if I haven't explained this to well, I'm still trying to get my head round closures.
0 564 posted 16 years ago by 1man
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 590 posted 16 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 670 posted 16 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 725 posted 16 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 669 posted 16 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 956 posted 16 years ago by jonhenshaw
Just call the function in an HTML element and it would flip the text in it.
1 684 posted 16 years ago by iTony
libreria que mediante ajax y javascript permite paginar los contenidos de una tabla
0 490 posted 16 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 670 posted 16 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 778 posted 16 years ago by victorchamorro
Basic usage of the in and instanceOf operators.
0 662 posted 16 years ago by 1man
3 713 posted 16 years ago by miziomon
1 ... 56 57 58 59 60 ... 65