Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged c



1 ... 44 45 46 47 48 ... 65
you can use this function for ie javascript bug. İt is switchin display with javascript
0 1325 posted 16 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 1168 posted 16 years ago by xtheonex
0 1249 posted 16 years ago by rifat
0 1291 posted 16 years ago by cobra90nj
<a href="javascript:(function(){var%20ids=[];jQuery('*').each(function(){if(this.id&&this.id!==''){if(ids[this.id]){console.log('duplicate%20id%20found:%20'+this.id,this,ids[this.id])}else{ids[this.id]=this}}});})();">Find duplicate IDs</a> (drag me...
1 1633 posted 16 years ago by krunkosaurus
Intelligent logging for javascript (also compatible with Firebug). Thanks to Prototype.js, PPK, and Danny Goodman for the idea!
2 1172 posted 16 years ago by jschilling
Switches body class between .portrait and .landscape for, you guessed it, portrait and landscape mode on the iphone.
0 1816 posted 16 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 1458 posted 16 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 1785 posted 16 years ago by jasonseney
Works in IE not Firefox/Mozilla.
0 1452 posted 16 years ago by hotdiggity
since the script observes mouseout, it should fire mouseleave events before mouseenter to preserve correct order.
1 1693 posted 16 years ago by pdswan
hope you enjoy - thanks to Tom Duff (for implementation in C), Dean Edwards, and Nicholas Zakas for the idea
0 1052 posted 16 years ago by jschilling
Remove item (number or string) from array, using jQuery (method grep).
3 16885 posted 16 years ago by gustavopaes
I'll never learn how to use this Markdown system. Anyway, here is the fixed code based on my comment on the following page: http://snipplr.com/view/14206/replace-spaces-with-underscores/ I'm sorry, I don't mean to hijack the code. :(
0 1615 posted 16 years ago by duniyadnd
Standard list markup, adds button to expand a super dropdown next to the link.
1 1718 posted 16 years ago by davebowker
3 1327 posted 16 years ago by kcmr
0 1762 posted 16 years ago by garside
Replace and append the following settings in modules/fckeditor/fckeditor.config.js. Has to be re applied after each update.
0 1210 posted 16 years ago by zachharkey
Only works in new tab, because of limitation of cross-domain AJAX
0 1143 posted 16 years ago by angusdev
This snippet is a reemplacement for the parseFloat function of the Javascript language. This new function gets one or two parameters if only one parameter is defined the function is like the original parseFloat. If there are two parameter passed to t...
1 1690 posted 16 years ago by amischol
1 ... 44 45 46 47 48 ... 65