Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 5 6 7 8 9 ... 46
0 1360 posted 14 years ago by paul0078
0 1372 posted 14 years ago by paul0078
0 2590 posted 14 years ago by paul0078
Returns the version of Windows Internet Explorer or a -1 (indicating the use of another browser).
0 2556 posted 14 years ago by satie83
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 6647 posted 14 years ago by chrisaiv
Valida por medio del metodo onkeypress de un campo input, que solo se ingresen string /[a-zA-Z]/
0 2881 posted 14 years ago by serialk89
simple html + javascript timer.
0 1303 posted 14 years ago by pixelatorz
Add the "no-js" class to your topmost html element, so you can use CSS to style JavaScript-free pages. This snippet will then replace that tag with "js", allowing you to style pages with JavaScript. The excellent [HTML5 Boilerplate](http://html5bo...
0 4528 posted 14 years ago by EvanHahn
Writing an PHP array in a javascript file with json_encode.
0 2176 posted 14 years ago by Narayon
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 1813 posted 14 years ago by aruldave
this code is used to remove the html code in the given string
1 1655 posted 14 years ago by satinfo30
Function to validate the existence of each key in the object to get the number of valid key/value pairs.
0 1728 posted 14 years ago by reverend
This snippet uses jQuery.extend() to merge the objects.
0 1425 posted 14 years ago by viskenxp
Remove initial inputfield value on focus.. and place it back on blur in case of empty value.
0 1692 posted 14 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 1565 posted 14 years ago by rickygri
The usual way to shuffle an array uses the .sort() method with Math.round(Math.random())-0.5 This solution is highly biased based on the sort algorithm used by the browsers. A sort comparison operation has to fulfill the condition "if a>b then b<a"...
0 1493 posted 14 years ago by devnull69
i don't know if this is amazing or scary
0 1436 posted 14 years ago by ederfortunatO
Javascript/jQuery to check for the time
0 1548 posted 14 years ago by poot26
Some FB apps are longer than the 800px default FB limit and most are designed to 520px. When your content is longer than the 800px default a verticle scroll bars appears and if you have a hard-coded width in your CSS of 520px this forces a horizontal...
0 1736 posted 14 years ago by the_construct
Aggiungere un Modulo
0 1590 posted 14 years ago by kajinka13
Load in runtime di file js
0 1538 posted 14 years ago by kajinka13
Converte tutti gli \n in <br>
0 1480 posted 14 years ago by kajinka13
Coordinate su Gmaps
0 1516 posted 14 years ago by kajinka13
Convert javascript comma separated string into an array
0 1828 posted 14 years ago by praveenius
How to check Html element type
0 1510 posted 14 years ago by caringprogrammer
0 1282 posted 14 years ago by pruntrut
Add trim method to String class
0 2697 posted 14 years ago by kajinka13
Grab jQuery library from Google's CDN this way its faster, burns Google's bandwidth and not yours. Also users will have this cached if other sites are using it as well. Downside of course is Google's servers do go down. This script will check if...
1 1689 posted 14 years ago by cyberpunkstudio
The Google Closure lets you get DOM elements with getElement( id ) and getElementByClass( class ). This function combines the two to let you get elements similarly to the way jQuery does. E.g. getElement( '#home .sidebar #links') returns the elemen...
0 2229 posted 14 years ago by cjcenizal
Usually when working with form you use a server to handle it, and if your doing it entirely in javascript no reload is required, but what if you wanted to take the information and use it in a javascript on another page, completely client side. I had...
0 2958 posted 14 years ago by FatFolderDesigner
1 ... 5 6 7 8 9 ... 46