Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 7 8 9 10 11 ... 46
0 650 posted 13 years ago by timarney
1 887 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 1551 posted 13 years ago by claudiowebdesign
This is a JavaScript powered dropdown (flyout) menu. HTML and CSS included.
0 905 posted 13 years ago by zvineyard
Assumes that you have got a #mainnav around your menu. Works nicely with wp_nav_menu inside.
0 781 posted 13 years ago by telltec
Place the following inside a `<xsl:template>` block
0 1562 posted 13 years ago by rumremix
0 714 posted 13 years ago by dato
0 742 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 889 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 879 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 721 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 638 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 1513 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 879 posted 13 years ago by DenoteIt
How to know if an element exists in JS (and jQuery).
0 783 posted 13 years ago by cesarkohl
Alterar Background randomicamente.
0 486 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 1199 posted 13 years ago by leobetosouza
1 ... 7 8 9 10 11 ... 46