Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged html
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Again, as part of the DCODR development I had to find a decent way to get the selection HTML
0
1867
posted 15 years ago by optimal
There's been a popular trend to use JavaScript to add target="_blank" to anchors with rel="external". So in the name of making everything in my site Prototype based I worked out a script to do just that.
2
818
posted 15 years ago by fruehjahr
shows that 2 required args to the swf are being set in JS
'swflink' contains 'referer' , 'IpAddress' arg values so they will not be undefined
0
979
posted 16 years ago by rowntreerob
Name the form what ever you like, but make sure that is reflected in the javascript.
0
4753
posted 16 years ago by jachin
curvyCorners is a free JavaScript program that will create on-the-fly rounded corners for any HTML DIV element, that look as good as any graphically created corners.
3
1156
posted 16 years ago by jonhenshaw
Will toggle an element's style.visibility, or set it to visible/hidden as selected
0
764
posted 16 years ago by martinkas
Script takes links that are not on your domain and opens them in a new window. This code allows for XHTML strict validation and meets Accessibility criteria on opening new windows.
5
1051
posted 17 years ago by skatan
Simply replaces the div's innerHTML with the response text received from the file.
3
1541
posted 17 years ago by 1man
A great script that will serve up stylesheets based on browser viewport size.
5
1151
posted 17 years ago by aznprncritic
Resize a Popup to Fit an Image's Size
By Peter Todorov
February 10th 2003
Reader Rating: 9.1
If you're a Webmaster who has to deal with image galleries, then make a note of this clever script. It gives you a solution to a very common problem --...
1
1148
posted 18 years ago by zensir
If you want your pages to be valid XHTML-Strict, but you also wish to open external links in new window, the following snippet is doing just that—sets attribute target=“_blank†to all external links in a document to keep your code valid XHTML-S...
2
1122
posted 18 years ago by zensir
The ideal use of this code would be to save the Javascript code as a .js file. Then use the HTML code at the bottom to call it wherever you want on the web page.
1
972
posted 18 years ago by Jaymoon
Directions: be sure to set to absolute paths every image location from your litebox-1.0.js and lightbox.css files... and, replace the setInnerHTML function with this one...
http://www.doknowevil.net/litebox/
1
981
posted 18 years ago by rolandog
For a working demo in application/xhtml+xml or text/html, go to:
http://rolandog.com/archives/2006/07/10/litebox-demasiado-bueno-para-ser-cierto/
You should delete the multi-line comments after completing the setup, some old browsers will complai...
3
1147
posted 18 years ago by rolandog