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 711 posted 16 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 1124 posted 16 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 663 posted 16 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 811 posted 16 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 759 posted 16 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 1826 posted 16 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 579 posted 16 years ago by ianmonge
originally posted by penguin999 here: http://snipplr.com/view/3372/radio-button-values-using-jquery/
2 1240 posted 16 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 776 posted 16 years ago by kouphax
0 611 posted 16 years ago by vasilije
0 569 posted 16 years ago by vasilije
Update: Fixed a bug at the basic click() function.
1 669 posted 16 years ago by Wiederkehr
Example: `var result = "Hello {0}! This is {1}.".format("world","foo bar");` Returns: `"Hello World! This is foo bar."`
2 1110 posted 16 years ago by jasonseney
A simple countDown class in Javascript:
1 894 posted 16 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 758 posted 16 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 864 posted 16 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 747 posted 16 years ago by kouphax
1 ... 36 37 38 39 40 ... 46