Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
判æ–客户端的æµè§ˆå™¨å’Œæ“作系统的类型和版本å·
0
1346
posted 17 years ago by mn232nm
a set of function useful to check data (functions name in italian but easy to translate).
0
3243
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