Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 ... 7 8 9 10 11 ... 66
Just add an image... try it.
2 548 posted 10 years ago by jkdreaming
Returns the version of Windows Internet Explorer or a -1 (indicating the use of another browser).
0 484 posted 10 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 433 posted 10 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 3483 posted 10 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 447 posted 10 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 470 posted 10 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 746 posted 10 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 580 posted 10 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 812 posted 10 years ago by hellowouter
Valida por medio del metodo onkeypress de un campo input, que solo se ingresen string /[a-zA-Z]/
0 596 posted 10 years ago by serialk89
modificar onclick compatible con internet explorer !
0 391 posted 10 years ago by rickyslow
simple html + javascript timer.
0 399 posted 10 years ago by pixelatorz
Escribir vertical
0 331 posted 10 years ago by rickyslow
I hate manually entering in tons of numbers and tags for numbers, so I made a loop for it.
0 520 posted 10 years ago by JonnyCraze
To be added to all Landing Pages and other new works
0 420 posted 10 years ago by jburcsik
Simular submit al hacer enter y tener un boton type="button"
0 460 posted 10 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 442 posted 10 years ago by EvanHahn
This prepends a `#` if it's not already there. Useful when doing jQuery selectors.
0 354 posted 10 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 519 posted 10 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 476 posted 10 years ago by aruldave
CSS Opacity Filter
0 385 posted 10 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 571 posted 10 years ago by singalongwithdavehotmailcom
this code is used to remove the html code in the given string
1 475 posted 10 years ago by satinfo30
A function that will return a list of files from a directory.
0 507 posted 10 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 486 posted 10 years ago by reverend
This snippet uses jQuery.extend() to merge the objects.
0 421 posted 10 years ago by viskenxp
다양한 형태로 jQuery를 이용하여 DOM 요소에 이벤트를 다는 방법
0 406 posted 10 years ago by safe1981
Script for twitter widget
0 469 posted 10 years ago by CKOink
Remove initial inputfield value on focus.. and place it back on blur in case of empty value.
0 506 posted 10 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 504 posted 10 years ago by rickygri
1 ... 7 8 9 10 11 ... 66