Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 7 8 9 10 11 ... 46
0 937 posted 13 years ago by timarney
1 1188 posted 13 years ago by vitorbari
Hi everyone, a while ago i posted a little script that reproduced a little animation effect seen in Windows 8 Developer Preview. I thought about expanding it some more, and in the end i started actually recreating the whole Metro interface in HTML5/C...
1 1985 posted 13 years ago by claudiowebdesign
This is a JavaScript powered dropdown (flyout) menu. HTML and CSS included.
0 1221 posted 13 years ago by zvineyard
Assumes that you have got a #mainnav around your menu. Works nicely with wp_nav_menu inside.
0 1360 posted 13 years ago by telltec
Place the following inside a `<xsl:template>` block
0 2916 posted 13 years ago by rumremix
0 1065 posted 13 years ago by dato
0 1036 posted 13 years ago by BebenKoben
This bit of jquery will take whatever you give it in the selector (which should be a valid jquery selector of any kind) and add or remove additional classas as appropriate based on width. The width and style names are all determined by the last i...
0 1541 posted 13 years ago by FatFolderDesigner
Developing a form where I had several date and time fields, I came with a jQuery multiselector where I need to get, through the name attribute, if it was a date or time field. So far, jQuery does not have a boolean method to check if an attribute of...
0 1201 posted 13 years ago by betacar
Why do this? =========== *hopefully* this will cause the page to refresh and provide a stop button in the future. The idea is to use it while developing in a text editor, as in Vim or its ilk, and not have to alt+tab all the _*flipping*_ time. F...
0 1037 posted 13 years ago by inreflection7
found the solution here: http://stackoverflow.com/questions/2790001/fixing-javascript-array-functions-in-internet-explorer-indexof-foreach-etc
0 929 posted 13 years ago by pixelatorz
The HTML simply discovers if it's IE and its version or if it's not IE. The jQuery discovers if it's IE, Firefox, Webkit Engine (Chrome and Safari) or Opera and its version as an integer.
1 2287 posted 13 years ago by cesarkohl
Pass variables into javascript files using query strings, and return them using getJSvars() Example //HTML <script> //return the value of "foo" getJSvars('filename.js', 'foo');
0 1251 posted 13 years ago by DenoteIt
How to know if an element exists in JS (and jQuery).
0 1096 posted 13 years ago by cesarkohl
Alterar Background randomicamente.
0 768 posted 13 years ago by Jotape
Changes 340px with the page footer height. CSS: #top_link{ position:fixed; bottom:20px; right:50%; margin-right:-600px; overflow:hidden; text-indent:-9999px; background:url(../img/top.png) no-repeat 0 0; display:block; width:5...
1 1652 posted 13 years ago by leobetosouza
1 ... 7 8 9 10 11 ... 46