Welcome To Snipplr
Everyone's Recent Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
addEvent function. Can't remember the exact site i got it from. Works well for me.
1
698
posted 17 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
680
posted 17 years ago by 1man
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
1072
posted 17 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
1096
posted 17 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
1178
posted 17 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
1204
posted 17 years ago by iTony
Haven't had a chance to use this but it looks very promising.
14
1434
posted 17 years ago by aznprncritic
A great script that will serve up stylesheets based on browser viewport size.
5
1149
posted 17 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
807
posted 17 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
737
posted 17 years ago by assbach
This is a prototype based method for loading functions, this is an alternative to using window.onload = function();
1
685
posted 17 years ago by vanne
交互ã«èƒŒæ™¯è‰²ã‚’変ãˆã‚‹ã‚¹ã‚¯ãƒªãƒ—ト.
XHTML basic templateã¨åˆã‚ã›ã¦å‚考ã«ã©ã†ãž.
本当ã¯CSSクラスを振ã£ã¦, スタイルã¯CSSã§ä»˜ã‘ãŸã»ã†ãŒã„ã„ã‘ã©å–り急ãŽ.
1
632
posted 17 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
1638
posted 17 years ago by jonhenshaw
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
652
posted 17 years ago by Memphys