Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged javascript



1 ... 24 25 26 27 28 ... 33
0 529 posted 15 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 874 posted 15 years ago by ianmonge
by andrew weaver
2 668 posted 15 years ago by melvitax
判断客户端的浏览器和操作系统的类型和版本号
0 523 posted 15 years ago by mn232nm
strip non alphanumerical characters while typing
1 683 posted 15 years ago by ginoplusio
a set of function useful to check data (functions name in italian but easy to translate).
0 1023 posted 15 years ago by ginoplusio
Simply jQuery script for CSS drop-down menu
7 1080 posted 16 years ago by bcalloway
0 713 posted 16 years ago by Zver
sorting a table through javascript
3 1010 posted 16 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 747 posted 16 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 1214 posted 16 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 1774 posted 16 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 1223 posted 16 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 930 posted 16 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 1075 posted 16 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 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 664 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 812 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 760 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 1827 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 582 posted 16 years ago by ianmonge
originally posted by penguin999 here: http://snipplr.com/view/3372/radio-button-values-using-jquery/
2 1241 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
1 ... 24 25 26 27 28 ... 33