Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged javascript



1 ... 24 25 26 27 28 ... 33
0 1305 posted 17 years ago by IJajan
How to create a custom “:checked” pseudo selector for use in MooTools. It is just a small snippet but I’ve found it incredibly useful.
0 2123 posted 17 years ago by ianmonge
by andrew weaver
2 1699 posted 17 years ago by melvitax
判断客户端的浏览器和操作系统的类型和版本号
0 1346 posted 17 years ago by mn232nm
strip non alphanumerical characters while typing
1 1713 posted 17 years ago by ginoplusio
a set of function useful to check data (functions name in italian but easy to translate).
0 3243 posted 17 years ago by ginoplusio
Simply jQuery script for CSS drop-down menu
7 2522 posted 17 years ago by bcalloway
0 1914 posted 17 years ago by Zver
sorting a table through javascript
3 2313 posted 17 years ago by ginoplusio
Many thanks to bloggingdeveloper.com for this one. Works like a charm. Usage is similar to server side built-in functions.
2 1881 posted 17 years ago by charmcitycoder
This is a sample Google Maps API script that shows a base map with city markers, each with a numbered label. The marker is a default, blank red marker with a number label defined by the overlay array. Clicking on a marker takes you to a page define...
1 2613 posted 17 years ago by bcalloway
Sample script to use Google API to display a map with multiple marker layers that can be toggled on/off using checkboxes. The map data is provided using the .kml files provided from "My Maps" on Google, or Google Earth files.
2 3392 posted 17 years ago by bcalloway
Escape all special regex characters (.*+?|()[]{}\) from a string. Useful when dynamically building a Regular Expression object based on input text that could hold regex characters.
2 2772 posted 17 years ago by kouphax
Thanks to Matt Farina This snippet is useful for preloading content with media that has been received via an AJAX request. For simple preloading of known images, see similar snippet.
6 2249 posted 17 years ago by nighthawk
Thanks to Matt Farina Also see similar snippet for preloading arbitrary content, e.g. media in content received via AJAX.
14 2440 posted 17 years ago by nighthawk
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 1839 posted 17 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 2610 posted 17 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 1668 posted 17 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 1910 posted 18 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 2014 posted 18 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 3224 posted 18 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 1630 posted 18 years ago by ianmonge
originally posted by penguin999 here: http://snipplr.com/view/3372/radio-button-values-using-jquery/
2 2830 posted 18 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 1937 posted 18 years ago by kouphax
1 ... 24 25 26 27 28 ... 33