Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged javascript



basic wrapper for jQuery code
4 1322 posted 18 years ago by sambody
I use this snippet to organize my JavaScript files.
0 1638 posted 18 years ago by rhlowe
0 1092 posted 18 years ago by voidlock
for firefox
1 1157 posted 18 years ago by kyokutyo
addEvent function. Can't remember the exact site i got it from. Works well for me.
1 1133 posted 18 years ago by 1man
Shows you how to link 2 objects together via the object function. If a value isn't found in the object, it will look for it in the linked object.
0 1166 posted 18 years ago by 1man
Why doesn't this work?
1 1224 posted 18 years ago by gaunab
This function allows you to parse a simple XML document(passed to it using this.href on a onclick event). Virtually the same as JSON, the things that have been changed ate labeled !Important.
3 1940 posted 18 years ago by 1man
This function is near enough the same as parsing XML. The only things that have changed are the sections marked !important.
3 1999 posted 18 years ago by 1man
This function allows you to open a new window, without using any inline Javascript. Simply add rel="external" to the link you wish to open in a new window.
3 2824 posted 18 years ago by 1man
In IE5 and IE6 the transparancy in PNG images won't happen at all, so this would fix it. This might come really useful while we are in the era of switching to better standard-friendly browsers.
7 2145 posted 18 years ago by iTony
1 1233 posted 18 years ago by clapfouine
Haven't had a chance to use this but it looks very promising.
14 2223 posted 18 years ago by aznprncritic
A great script that will serve up stylesheets based on browser viewport size.
5 2019 posted 18 years ago by aznprncritic
This is another script from the DOM scripting book. Not really relevant to anybody else. Useful for reminding myself about the DOM.
1 1276 posted 18 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 1311 posted 18 years ago by assbach
This is a prototype based method for loading functions, this is an alternative to using window.onload = function();
1 1188 posted 18 years ago by vanne
交互に背景色を変えるスクリプト. XHTML basic templateと合わせて参考にどうぞ. 本当はCSSクラスを振って, スタイルはCSSで付けたほうがいいけど取り急ぎ.
1 1060 posted 18 years ago by masaya
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 1097 posted 19 years ago by Memphys
2 1668 posted 19 years ago by whitetiger
This I will use for popping up the login and profile info
1 1306 posted 19 years ago by iTony
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 1371 posted 19 years ago by jonhenshaw
1 1270 posted 19 years ago by danideu
javascript in_array object frame. Usar: Mediceau.Navegacion.marcar(['nav1','nav2']) ... _--Nav 1 _--Nav 2 _--Nav 3 _--Nav 4
0 1249 posted 19 years ago by nicolaspar