Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 ... 23 24 25 26 27 ... 66
random image loaded on page refresh
0 382 posted 12 years ago by raondo
This is a simple and effective way yo make sure people are actually filing out a form before submitting it. If you need to verify content it should be done server side (so that if you come across the odd person with javascript turned off it wont brea...
0 520 posted 12 years ago by FatFolderDesigner
0 323 posted 12 years ago by mattneary
From JavaScript Patterns
0 343 posted 12 years ago by jofan
*String template (String template, Object data)* Usage: template('Hello <b>${name}!</b> (not ${name}?)', { name: 'Gandalf' }) Result: Hello <b>Gandalf!</b> (not Gandalf?)
0 396 posted 12 years ago by emdin
0 256 posted 12 years ago by doorhammer
Cleaned up (with the help of jslint.com) versions of cookie handling functions
0 968 posted 12 years ago by pmw57
0 462 posted 12 years ago by terrencewood
This function automates the creation of the <OPTION>s of a <SELECT> element. It's ideal for your AJAX apps when you create display elements using Javascript It accepts to different kind of arrays: An array of key:values… var arrDirs = {...
0 413 posted 12 years ago by nomada
This fixes the downside of the original javascript keyboard navigation snippet I posted here so that if you manually scroll past to a new chapter mark it will register that and keep track of your location better. The old code would ignore any scroll...
2 470 posted 12 years ago by FatFolderDesigner
Starting with GoogleTV in mind I made a script to help navigate a page key basic key inputs, in this case I'm using the left and right arrows to jump between the H1 tags on a page, although the modifications to make it do other things would be very s...
0 495 posted 12 years ago by FatFolderDesigner
0 466 posted 12 years ago by RuslanSavenok
0 422 posted 12 years ago by iamjpg
jQuery testing for animating CSS transforms using CSS transitions.
0 326 posted 12 years ago by martenbjork
A nice little code snippet for displaying images randomly when a page is reloaded.
0 429 posted 12 years ago by danielwrobert
If you are trying to solving one or both of these problems: + If the window is resized to a smaller size that was designed for - a scrollbar would be nice. + If the content is larger than the original design - a scrollbar would be nice Then use...
1 483 posted 12 years ago by chrisaiv
JavaScript file that creates the HTML5 elements for IE8 and below (by Remy Sharp). Just call the file from the head of the html in a conditional comment [if lte IE 8].
0 383 posted 12 years ago by polly42
tested with CKEDITOR 3.0 and Firefox 3.6.12 and IE 8
0 293 posted 12 years ago by fahrenx
Simple function that filters out any duplicate items in an array.
7 1050 posted 12 years ago by Nettuts
0 468 posted 12 years ago by mmstudio
Since tinyMCe doesn't transfer it's editor contents to the text area until you hit the submit button, and since the autosubmitter doesn't ever hit the submit button TinyMCE boxes never save. IT's a simple fix, just place the code on line 2, at the ve...
0 417 posted 12 years ago by FatFolderDesigner
2 512 posted 12 years ago by sdxxx
1 ... 23 24 25 26 27 ... 66