Welcome To Snipplr
Everyone's Recent JavaScript Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Handy for after submitting a form or moving sites and wanting to tell users about the change. Just change the URL (can be absolute or relative) and the timeout. Shown here as 5 seconds.
5
757
posted 16 years ago by mountainash
Trims leading and trailing spaces from a string value and returns the result as a new string.
1
637
posted 16 years ago by splorp
in javascript use, for example: myJsonObject["js007"].firstname + ' ' + myJsonObject["js007"].lastnamename
to return James Bond
1
518
posted 16 years ago by markireland
This is a prototype based method for loading functions, this is an alternative to using window.onload = function();
1
426
posted 16 years ago by vanne
Helps identify correctly the type of whatever you put as an argument. This was adapted from http://www.planetpdf.com/developer/article.asp?ContentID=testing_for_object_types_in_ja
3
539
posted 16 years ago by rolandog
交互ã«èƒŒæ™¯è‰²ã‚’変ãˆã‚‹ã‚¹ã‚¯ãƒªãƒ—ト.
XHTML basic templateã¨åˆã‚ã›ã¦å‚考ã«ã©ã†ãž.
本当ã¯CSSクラスを振ã£ã¦, スタイルã¯CSSã§ä»˜ã‘ãŸã»ã†ãŒã„ã„ã‘ã©å–り急ãŽ.
1
412
posted 16 years ago by masaya
Removes the ad at the top of a xanga page; place in Webstats below all other codes
This one actually works, even in Opera and Firefox,
2
505
posted 16 years ago by sondosia
In Internet Explorer, it's a well-known issue that tags are rendered above other layers and things like drop-down menus. This fix is specifically for the "Son of Suckerfish" drop-down menus (see URL), which are entirely CSS-based (JS is needed only...
1
607
posted 16 years ago by Todd
Evitar que en el código de la página se pueda ver “[email protected]â€.
2
587
posted 16 years ago by Hirmine
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
376
posted 16 years ago by Memphys
Replaces a DOM Element with another, but keeps the classes and IDs of the old one.
3
609
posted 16 years ago by gaunab
The code for inserect the Search Box (of Apple Search) on your webpages
0
423
posted 16 years ago by philapple
This is a website specific script... pops up the source of an OPML file with 145+ podcasts.
http://www.productivity501.com/2006/11/free_academic_p.html
Note: The 'bookmarklet' format is included as a comment at the bottom... (write in a webpage a...
1
413
posted 16 years ago by rolandog