Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged c



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 1895 posted 18 years ago by multani
0 1498 posted 18 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 1975 posted 18 years ago by 1man
0 1308 posted 18 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 1716 posted 18 years ago by 1man
Unable to use CSS for select tag? Simple changes approve it. P.S. Don't forget about prototype framework ()
1 1116 posted 18 years ago by timka
Jquery is awesome. Requires jquery!
4 1340 posted 18 years ago by lagrangeapex
Oh so sweet. A big thanks to Chris Poole for this one.
1 1176 posted 18 years ago by Hanek
Apologies if I haven't explained this to well, I'm still trying to get my head round closures.
0 1311 posted 18 years ago by 1man
0 1491 posted 18 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 1495 posted 18 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 1572 posted 18 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 1931 posted 18 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 1736 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 2289 posted 18 years ago by jonhenshaw
Just call the function in an HTML element and it would flip the text in it.
1 1706 posted 18 years ago by iTony
libreria que mediante ajax y javascript permite paginar los contenidos de una tabla
0 1179 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 1508 posted 18 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 1767 posted 18 years ago by victorchamorro
Basic usage of the in and instanceOf operators.
0 1518 posted 18 years ago by 1man
3 1777 posted 18 years ago by miziomon
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 1353 posted 18 years ago by Todd
1 ... 56 57 58 59 60 ... 65