Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



This is another script from the DOM scripting book. Not really relevant to anybody else. Useful for reminding myself about the DOM.
1 404 posted 15 years ago by 1man
when testing forms you don't always want to fill in dummydate this is a function i used to autofill and select values.
1 405 posted 15 years ago by assbach
This is a prototype based method for loading functions, this is an alternative to using window.onload = function();
1 386 posted 15 years ago by vanne
交互に背景色を変えるスクリプト. XHTML basic templateと合わせて参考にどうぞ. 本当はCSSクラスを振って, スタイルはCSSで付けたほうがいいけど取り急ぎ.
1 360 posted 15 years ago by masaya
IE6 and before doesn't support :hover in CSS (except for anchors). You can use this script to make hovers work in IE. Just add the following line to your stylesheet (this assumes the path of the file -- you may need to change it to reflect your paths...
7 978 posted 15 years ago by jonhenshaw
1 306 posted 15 years ago by pablazo
en verdad lo importante es que se abra un popup con window.open, y ponerle un nombre a ese popup ("nueva"); y después, en la otra funcion, poner en el target del formulario el nombre del popup (target="nueva")
2 397 posted 15 years ago by pablazo
Open some internet-page with some pictures on it. Then just paste this text into the address line and press "Enter". Works good only in IE, sometimes in Opera...
0 338 posted 15 years ago by Memphys
0 419 posted 15 years ago by whitetiger
0 411 posted 15 years ago by whitetiger
1 480 posted 15 years ago by whitetiger
2 505 posted 15 years ago by whitetiger
0 515 posted 15 years ago by whitetiger
0 325 posted 15 years ago by natalie
0 381 posted 15 years ago by natalie
This I will use for popping up the login and profile info
1 433 posted 15 years ago by iTony
0 344 posted 15 years ago by pablazo
1 440 posted 15 years ago by pablazo
JavaScript Tooltip libraries number about as many as rounded CSS corner libraries. Jonathan Weiss thought the ones he saw were "too complicated and bloated, did just too much and most of the time were still not flexible enough with the tooltip. So...
1 421 posted 15 years ago by jonhenshaw
1 402 posted 15 years ago by danideu
javascript in_array object frame. Usar: Mediceau.Navegacion.marcar(['nav1','nav2']) ... _--Nav 1 _--Nav 2 _--Nav 3 _--Nav 4
0 428 posted 15 years ago by nicolaspar
wrap the text that will become a pullquote in a span element and give it the class name "pullquote"
1 470 posted 15 years ago by designerd