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 719 posted 12 years ago by caruso_g
Position of the element to center needs to be relative to the container.
0 657 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 1531 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 728 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 446 posted 12 years ago by luizlopes
an operator that implements true prototypal Object inheritance in JavaScript
0 582 posted 12 years ago by luizlopes
Default adapter saves to DOM.
0 540 posted 12 years ago by stur
JSLint requires the body of every `for in` statement should be wrapped in an `if` statement
0 678 posted 12 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 653 posted 12 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 474 posted 12 years ago by richtt
0 489 posted 12 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 526 posted 12 years ago by Krummelz
Скрипт "Материализатор", снабжающий сочным подтекстом любой текст. Выкладываю здесь, поскольку ссылки на [оригинальном сайте](http://lleo.me/dnev...
0 565 posted 12 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 1626 posted 12 years ago by claudiowebdesign
wrote this snippet as a necessity to preload many images without writing same code all the time in JS...
0 632 posted 12 years ago by alik
usage : var author_value = getQuerystring('author');
0 599 posted 12 years ago by nickaranz
1 ... 9 10 11 12 13 ... 65