Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged html



Again, as part of the DCODR development I had to find a decent way to get the selection HTML
0 221 posted 11 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 90 posted 11 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 95 posted 11 years ago by rowntreerob
1 118 posted 11 years ago by wizard04
Quick and easy way to feed flickr images into your website
2 90 posted 11 years ago by jessnoonyes
Name the form what ever you like, but make sure that is reflected in the javascript.
0 787 posted 12 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 119 posted 12 years ago by jonhenshaw
Will toggle an element's style.visibility, or set it to visible/hidden as selected
0 70 posted 12 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 105 posted 12 years ago by skatan
Simply replaces the div's innerHTML with the response text received from the file.
3 285 posted 13 years ago by 1man
A great script that will serve up stylesheets based on browser viewport size.
5 150 posted 13 years ago by aznprncritic
1 55 posted 13 years ago by pablazo
2 97 posted 13 years ago by whitetiger
0 64 posted 13 years ago by pablazo
3 120 posted 13 years ago by powerkan
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 154 posted 13 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 130 posted 13 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 94 posted 13 years ago by Jaymoon
2 122 posted 14 years ago by cochambre
guardar como flash.js
0 98 posted 14 years ago by kanirasta