Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



/* --==[ EXAMPLE ]==-- var colors = new AArray(); colors.add("k01", {bk:"#fff",tk:"b",it:"hello"}); var oC = colors.get("k01"); var tT = ''; for(K in oC) tT += "[" + K + "]: " + oC[K] + "\n"; tT += "\n\n"; tT += oC.bk + "\n"; tT += oC...
1 559 posted 14 years ago by vbert
0 585 posted 14 years ago by Victoor
This makes it easy to retrieve certain value from a url with different values appended to it.
0 565 posted 14 years ago by iTony
prevent errors in other browsers
0 523 posted 14 years ago by localhorst
This would make IE treat the hover element in whichever tag you implemented.
0 278 posted 14 years ago by iTony
0 281 posted 14 years ago by otaqui
0 337 posted 14 years ago by otaqui
1 449 posted 14 years ago by m00min
0 429 posted 14 years ago by iTony
Found this quick little bit of code on the Google jQuery discussion group. It simply fades the background image of a link you have hovered over to a certain color, then fades it back to the original color.
4 515 posted 14 years ago by 1man
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 798 posted 14 years ago by multani
0 475 posted 14 years ago by iTony
drunkenprogrammer
0 501 posted 14 years ago by zvasanth
drunkenprogrammer
0 451 posted 14 years ago by zvasanth
Unable to use CSS for select tag? Simple changes approve it. P.S. Don't forget about prototype framework ()
1 313 posted 14 years ago by timka
Apologies if I haven't explained this to well, I'm still trying to get my head round closures.
0 403 posted 15 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 461 posted 15 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 656 posted 15 years ago by jonhenshaw
Just call the function in an HTML element and it would flip the text in it.
1 475 posted 15 years ago by iTony
libreria que mediante ajax y javascript permite paginar los contenidos de una tabla
0 355 posted 15 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 481 posted 15 years ago by ChaosKaizer