Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 ... 7 8 9 10 11 ... 65
Just add an image... try it.
2 906 posted 12 years ago by jkdreaming
Returns the version of Windows Internet Explorer or a -1 (indicating the use of another browser).
0 850 posted 12 years ago by satie83
This little Gem allows me to click a link on the page automatically a few seconds after the page loads.
1 741 posted 12 years ago by gera3d
Very cool example of copying a frame from an MP4 and displaying it on the canvas or image. In order for images to be saved, the video must come from the same domain
0 4751 posted 12 years ago by chrisaiv
This script was written to allow transposing of utm_campaign, utm_source and utm_medium query parameters from the URL of a landing page link to all of the links on that page that re-directed to the primary domain where users would actually convert. T...
0 771 posted 12 years ago by kynatro
This script was written to allow transposing of utm_campaign, utm_source and utm_medium query parameters from the URL of a landing page link to all of the links on that page that re-directed to the primary domain where users would actually convert. T...
0 762 posted 12 years ago by kynatro
We are setting up two variables. The assignment in the middle part of the for loop is also tested for truthfulness — if it succeeds, the loop continues. Since i is incremented each time, items from the array will be assigned to item in sequential o...
0 1144 posted 12 years ago by hellowouter
In this purely constructed example, we create anonymous function and use call to invoke it on every object in an array. The main purpose of the anonymous function here is to add a print function to every object, which is able to print the right index...
0 933 posted 12 years ago by hellowouter
Clever usage of apply allows you to use built-ins functions for some tasks that otherwise probably would have been written by looping over the array values. As an example here we are going to use Math.max/Math.min to find out the maximum/minimum valu...
0 1323 posted 12 years ago by hellowouter
Valida por medio del metodo onkeypress de un campo input, que solo se ingresen string /[a-zA-Z]/
0 967 posted 12 years ago by serialk89
modificar onclick compatible con internet explorer !
0 671 posted 12 years ago by rickyslow
simple html + javascript timer.
0 683 posted 12 years ago by pixelatorz
Escribir vertical
0 566 posted 12 years ago by rickyslow
I hate manually entering in tons of numbers and tags for numbers, so I made a loop for it.
0 907 posted 12 years ago by JonnyCraze
To be added to all Landing Pages and other new works
0 725 posted 12 years ago by jburcsik
Simular submit al hacer enter y tener un boton type="button"
0 774 posted 12 years ago by rickyslow
Here's how to use this: * To access something in the local storage, type `Evan.local('name')`. You may need to use `JSON.parse()` on this result. Returns `null` if nothing's there. * To assign something in the local storage, type `Evan.local('nam...
1 764 posted 12 years ago by EvanHahn
This prepends a `#` if it's not already there. Useful when doing jQuery selectors.
0 622 posted 12 years ago by EvanHahn
`Object.create(null)` is a more memory-efficient way to make objects, but it's not supported in all versions of JavaScript, so you can do the "old-fashioned" `{}` if that function isn't available.
0 861 posted 12 years ago by EvanHahn
The below script list out the available tags based on the character you enter in the Tag field and the available tags in the array. All the user submitted tags through the Tag form will be stored in an array. Use the below script to enable the auto-c...
1 823 posted 12 years ago by aruldave
CSS Opacity Filter
0 647 posted 12 years ago by hubbske
Often in Flash, the mouse is used to zoom or scroll, and by default the document <body> tag will also pick this up, making the page scroll away - which is annoying when you just want to view the Flash element. This snippet intercepts mouse scroll...
0 987 posted 12 years ago by singalongwithdavehotmailcom
this code is used to remove the html code in the given string
1 804 posted 12 years ago by satinfo30
A function that will return a list of files from a directory.
0 888 posted 12 years ago by tpryan
Function to validate the existence of each key in the object to get the number of valid key/value pairs.
0 820 posted 12 years ago by reverend
This snippet uses jQuery.extend() to merge the objects.
0 706 posted 12 years ago by viskenxp
다양한 형태로 jQuery를 이용하여 DOM 요소에 이벤트를 다는 방법
0 715 posted 12 years ago by safe1981
Script for twitter widget
0 776 posted 12 years ago by CKOink
Remove initial inputfield value on focus.. and place it back on blur in case of empty value.
0 864 posted 12 years ago by hoogvlieger
Shows how to use an array to embed swf objects with swfobject.js. This allows for multiple embeds (synced ad's etc.)
0 801 posted 12 years ago by rickygri
1 ... 7 8 9 10 11 ... 65