Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 40 41 42 43 44 ... 47
Note that the comment is part of the code here. IE 5+ (including Mac) will evaluate to true by using conditional compilation.
0 134 posted 12 years ago by cczona
*"Only the elements which are are selected through the $ selector will get the extra DOMAssistant methods added to it."
0 95 posted 12 years ago by cczona
How to use: 1) < script type="text/javascript" src="path-to-file.js"... 2) < body onload="oHW.preMontar('img1_on.jpg','img2_on.jpg','img3_on.jpg');"... 3) < a href="#" onmouseout="oHW.Restore()" onmouseover="oHW.Cambiar('mnind','img1_on.jpg'...
2 135 posted 12 years ago by hellion
Use this snippet to quickly insert onclick="window.open();" into your HTML... --- Snippets can save you time and hassle of typing out bits of code that you frequently use by adding them into your files by simply double-clicking the name of the Sn...
1 119 posted 12 years ago by hellion
I got this code from http://blog.vishalon.net/Post/57.aspx The actual two methods required are function doGetCaretPosition (ctrl) { var CaretPos = 0; // IE Support if (document.selection) { ctrl.focus (); var Sel = document.select...
3 972 posted 12 years ago by arunpjohny
/* ---===[ EXAMPLE ]===--- */ var TT = new AssociativeArray(); TT.add("k-1", "Value 1"); TT.add("k-2", "Value 2"); TT.add("k-3", "Value 3"); TT.add("k-4", "Value 4"); alert(TT.to_string());
1 74 posted 12 years ago by vbert
/* --==[ 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 137 posted 12 years ago by vbert
0 192 posted 12 years ago by Victoor
This makes it easy to retrieve certain value from a url with different values appended to it.
0 146 posted 12 years ago by iTony
prevent errors in other browsers
0 147 posted 12 years ago by localhorst
This would make IE treat the hover element in whichever tag you implemented.
0 60 posted 12 years ago by iTony
0 59 posted 12 years ago by otaqui
0 74 posted 12 years ago by otaqui
0 95 posted 12 years ago by pablazo
1 117 posted 12 years ago by m00min
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 140 posted 12 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 223 posted 12 years ago by multani
0 113 posted 12 years ago by iTony
drunkenprogrammer
0 117 posted 12 years ago by zvasanth
1 ... 40 41 42 43 44 ... 47