Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 ... 9 10 11 12 13 ... 65
Use CDN if online. Fallback to local version if offline.
0 916 posted 12 years ago by caruso_g
Position of the element to center needs to be relative to the container.
0 827 posted 12 years ago by Neven
A complete HTML page for a Facebook "app" that does login entirely on the client. 1 - Create a Facebook application (see Facebook developer docs.). 2 - Because of a Facebook "bug" the app should have Sandbox Mode disabled (App Settings - Advanced -...
8 1765 posted 12 years ago by rlmcneary2
Change the text of the jquery cycle pager element. By default is is 1, 2, 3 etc but you can change this to text via a variable
1 928 posted 12 years ago by i-am-andy
When you use the `+` operator on an Array, it converts it to a string.` [].toString()` is the same as `[].join(',')`, which gives an empty string in case the array value is `undefined` or `null`. This also works in Javascript `([undefined] + "b" ===...
0 605 posted 13 years ago by luizlopes
an operator that implements true prototypal Object inheritance in JavaScript
0 775 posted 13 years ago by luizlopes
Default adapter saves to DOM.
0 692 posted 13 years ago by stur
JSLint requires the body of every `for in` statement should be wrapped in an `if` statement
0 856 posted 13 years ago by luizlopes
Funció que agafa les mides de la pantalla i redimensiona proporcionalment una imatge per a que s'adapti a ella.
0 826 posted 13 years ago by hectorlorenzo
Show Hide table data uses href, anchors, div tags, and javascript to toggle between showing and hiding a table on the html page.
0 636 posted 13 years ago by richtt
0 652 posted 13 years ago by bubaphex
This can be put into a utility class in your ASP.NET project and put onto the page with ScriptManager.RegisterStartupScript(). The script alters the ASP.NET __VIEWSTATE value which somehow validates requests; if you leave it out the popup wont work.
0 682 posted 13 years ago by Krummelz
Скрипт "Материализатор", снабжающий сочным подтекстом любой текст. Выкладываю здесь, поскольку ссылки на [оригинальном сайте](http://lleo.me/dnev...
0 718 posted 13 years ago by certainlyakey
this function gets a parameter like an hex color (es: "#ffffff"), an abbreviated hex color (es: "#fff"), an rgb color (es: "rgb(255,255,255)") or an rgba color (es: "rgba(255,255,255,1)"), and returns an object containing the rgba values, like { red:...
0 1952 posted 13 years ago by claudiowebdesign
wrote this snippet as a necessity to preload many images without writing same code all the time in JS...
0 810 posted 13 years ago by alik
usage : var author_value = getQuerystring('author');
0 760 posted 13 years ago by nickaranz
1 ... 9 10 11 12 13 ... 65