Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Laat 3 seconden de load div zien met daarin de loader gif animatie.
het element met id prijs wordt 3 seconden verborgen.
0
668
posted 15 years ago by epco
Very easy to use JS Calendar Control with so many customization options.
0
760
posted 15 years ago by design2develop
I made this class because is was fed up with all those strings with escaped quotes with when building html into an output-string. You could also build a php-version of it.
0
664
posted 15 years ago by leonardreinders
This will only work in FF 3.5 and web-kit browsers after (06/26/2009)
2
665
posted 15 years ago by adamdecaf
Basic setup code for using SWFObject to embed flash content in a plage.
2
914
posted 15 years ago by irishspacemonk
- a javascript for alternate row/column table striping
- supports row hover, column hover and cell hover effects and click events.
demo here:
http://www.frequency-decoder.com/demo/table-actions/
0
776
posted 15 years ago by beneberle
Namespace to avoid collision with other javascript variable/method names
1
776
posted 15 years ago by inkdeep
This comes in handy when working in big objects and you need to see what's happening on the inside of an instance.
I aliased 'console.log' to 'put' and wrapped it in a try/catch block that throws alerts if no console is available. Less typing - an...
1
735
posted 15 years ago by inkdeep
Enable jQuery on any website, just clicking on a bookmarklet with this code. Or drag & drop this on your bookmark bar: <a href="javascript:(function(){var%20s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs...
4
850
posted 15 years ago by danielfilho
Assign methods to a Function prototype when you intend to create instances of the type of object. Use object literals when you just need a container for functions.
0
938
posted 15 years ago by segdeha
Adds a class of hasJS to the html element, can be used for CSS styling.
1
1059
posted 15 years ago by 1man
you can use this function for ie javascript bug. Ä°t is switchin display with javascript
0
758
posted 15 years ago by Thresh
A lovely little one liner that strips out all non alphanumeric chars first, then replaces the spaces with hyphens, then converts all to lowercase :D
0
660
posted 15 years ago by xtheonex
Intelligent logging for javascript (also compatible with Firebug). Thanks to Prototype.js, PPK, and Danny Goodman for the idea!
2
627
posted 15 years ago by jschilling
Switches body class between .portrait and .landscape for, you guessed it, portrait and landscape mode on the iphone.
0
1072
posted 15 years ago by ira
Ever wanted nested stylesheets?
I have!
Now you can have them! If you code your stylesheets as JSON and parse them using JSS 0.1. You could have the following:
JSS({
'html': {
'body': {
background: '#ff...
0
840
posted 15 years ago by dom111
Based on some comments in [StackOverflow Question](http://stackoverflow.com/questions/95875/javascript-check-to-see-if-a-variable-is-an-object "How to check if a variable is an object")
3
994
posted 15 years ago by jasonseney
since the script observes mouseout, it should fire mouseleave events before mouseenter to preserve correct order.
1
886
posted 15 years ago by pdswan