Welcome To Snipplr
Everyone's Recent JavaScript Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Position of the element to center needs to be relative to the container.
        
        
        
            0 
        
        
            1323 
        
                    posted 13 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 
        
        
            2440 
        
                    posted 13 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 
        
        
            1438 
        
                    posted 13 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 
        
        
            926 
        
                    posted 13 years ago by luizlopes
            an operator that implements true prototypal Object inheritance in JavaScript
        
        
        
            0 
        
        
            1305 
        
                    posted 13 years ago by luizlopes
            JSLint requires the body of every `for in` statement should be wrapped in an `if` statement
        
        
        
            0 
        
        
            1435 
        
                    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 
        
        
            1338 
        
                    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 
        
        
            1003 
        
                    posted 13 years ago by richtt
            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 
        
        
            1083 
        
                    posted 13 years ago by Krummelz
            Скрипт "Материализатор", Ñнабжающий Ñочным подтекÑтом любой текÑÑ‚. Выкладываю здеÑÑŒ, поÑкольку ÑÑылки на [оригинальном Ñайте](http://lleo.me/dnev...
        
        
        
            0 
        
        
            2048 
        
                    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 
        
        
            2859 
        
                    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 
        
        
            1253 
        
                    posted 13 years ago by alik
            
