Welcome To Snipplr
Everyone's Recent Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1024
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
1529
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
970
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
1128
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
1129
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
2293
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
880
posted 16 years ago by ianmonge
originally posted by penguin999 here:
http://snipplr.com/view/3372/radio-button-values-using-jquery/
2
1682
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
1170
posted 16 years ago by kouphax
Example:
`var result = "Hello {0}! This is {1}.".format("world","foo bar");`
Returns:
`"Hello World! This is foo bar."`
2
1669
posted 16 years ago by jasonseney
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
1179
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
1229
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
1019
posted 16 years ago by kouphax