Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 15 16 17 18 19 ... 46
random image loaded on page refresh
0 1548 posted 15 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 2126 posted 15 years ago by FatFolderDesigner
0 1964 posted 15 years ago by jaredyeo
0 1111 posted 15 years ago by doorhammer
2 2319 posted 15 years ago by alyssonweb
0 1834 posted 15 years ago by madr
Cleaned up (with the help of jslint.com) versions of cookie handling functions
0 5272 posted 15 years ago by pmw57
0 1816 posted 15 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 1731 posted 15 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 2154 posted 15 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 1903 posted 15 years ago by FatFolderDesigner
This is essentially how to detect an outside click for a dialog box on a website, using HTML/CSS/Javascript/JQuery. Essentially you need to understand event propagation how it works throughout the DOM with JQuery, to make this as simple as possib...
0 1845 posted 15 years ago by alvincrespo
A nice little code snippet for displaying images randomly when a page is reloaded.
0 1700 posted 15 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 1930 posted 15 years ago by chrisaiv
0 1840 posted 15 years ago by madr
This is some very basic jQuery to post from a comment form on a website. I would probably change the .click to .bind("click",) and for different sites I add a success message. This code works with a basic form with text inputs named #name and #email...
3 2068 posted 15 years ago by creativeboulder
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 1582 posted 15 years ago by polly42
Adapted so a delay can be applied on mouseleave.
1 1720 posted 15 years ago by Meander365
0 1740 posted 15 years ago by madr
tested with CKEDITOR 3.0 and Firefox 3.6.12 and IE 8
0 1361 posted 15 years ago by fahrenx
1 ... 15 16 17 18 19 ... 46