Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 7 8 9 10 11 ... 46
0 1238 posted 14 years ago by timarney
1 1541 posted 14 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 2619 posted 14 years ago by claudiowebdesign
This is a JavaScript powered dropdown (flyout) menu. HTML and CSS included.
0 1585 posted 14 years ago by zvineyard
Assumes that you have got a #mainnav around your menu. Works nicely with wp_nav_menu inside.
0 2338 posted 14 years ago by telltec
Place the following inside a `<xsl:template>` block
0 4359 posted 14 years ago by rumremix
0 1493 posted 14 years ago by dato
0 1378 posted 14 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 2626 posted 14 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 1591 posted 14 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 1356 posted 14 years ago by inreflection7
found the solution here: http://stackoverflow.com/questions/2790001/fixing-javascript-array-functions-in-internet-explorer-indexof-foreach-etc
0 1289 posted 14 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 3520 posted 14 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 1627 posted 14 years ago by DenoteIt
How to know if an element exists in JS (and jQuery).
0 1461 posted 14 years ago by cesarkohl
Alterar Background randomicamente.
0 1009 posted 14 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 2830 posted 14 years ago by leobetosouza
1 ... 7 8 9 10 11 ... 46