Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 36 37 38 39 40 ... 46
This code, when placed at the end of the body tag will set focus on the first visible enabled element on the screen. It considers visibility as well as all forms on-screen
0 553 posted 15 years ago by kouphax
You will need to download a few things to easily create rounded corners. They are jQuery (http://jquery.com/) and the jQuery rounded corners plug-in (http://www.malsup.com/jquery/corner/).
14 911 posted 15 years ago by chrisaiv
Como hacer que el scroll de la página suba hasta arriba, para mostrar el principio de la página. Requiere el plugin Fx.Scroll que no viene con el core de Mootools 1.2.
1 509 posted 15 years ago by ianmonge
Based on my Annotations plugin this plugin offers the ability to use Mask annotations to apply input masks over input elements on a page. Very much BETA. See comments for use. <!--@Mask("##/##/####")-->
0 660 posted 15 years ago by kouphax
Constraints plugin (requires annotation plugin). This is the second draft version that has been severly refactoed both internally and externally.
0 597 posted 15 years ago by kouphax
The annotaion framework provides access to client side comment based DOM annotations. The framework does not imply any specific usage and is essentially useless on it's own. It merely provides another way to offer metadata for elements. An annota...
1 1602 posted 15 years ago by kouphax
Como la palabra delete es una palabra reservada, daba error en la detección de esa tecla cuando es pulsada. Para detectar ese evento, hay que usar otra forma:
0 453 posted 15 years ago by ianmonge
originally posted by penguin999 here: http://snipplr.com/view/3372/radio-button-values-using-jquery/
2 1034 posted 15 years ago by omixen
remove(array) --> array Array.remove(a) simply removes all the items in the passed in array from the current scope array. Good for bulk operations.
0 646 posted 15 years ago by kouphax
0 476 posted 15 years ago by vasilije
0 440 posted 15 years ago by vasilije
Update: Fixed a bug at the basic click() function.
1 551 posted 15 years ago by Wiederkehr
Example: `var result = "Hello {0}! This is {1}.".format("world","foo bar");` Returns: `"Hello World! This is foo bar."`
2 899 posted 15 years ago by jasonseney
A simple countDown class in Javascript:
1 706 posted 15 years ago by gfazioli
These functions allow you to easily set a handler for a virtual mouseleave/enter event. This requires my [MouseBoundaryCrossing](http://snipplr.com/view/8206/crossbrowser-mouseenterleave-solution/) class.
1 603 posted 15 years ago by wizard04
jQuery Plugin for returning selected DOM Nodes in DOM order. e.g. $('img.L,img.Y') will not be guaranteed DOM order (usually all the L's then all the Y's). Currently only works with IE and FF (that's all I needed).
1 703 posted 15 years ago by kouphax
The only function the Tag Cloud singleton exposes it the process() function which take 3 arguments. 1. Cloud Data - Required. Needs to have a display value property and a count property. The actual property names are configurable but by default...
0 619 posted 15 years ago by kouphax
1 ... 36 37 38 39 40 ... 46