Welcome To Snipplr


Everyone's Recent JavaScript Snippets



javascript in_array object frame. Usar: Mediceau.Navegacion.marcar(['nav1','nav2']) ... _--Nav 1 _--Nav 2 _--Nav 3 _--Nav 4
0 1269 posted 19 years ago by nicolaspar
A an excellent script for allowing links to open new windows while keeping the code standards compliant. If you look at the last line of the script, you will notice that the JSTarget.init() function takes three parameters (all optional). This is w...
0 1553 posted 19 years ago by jonhenshaw
A useful but often overrated JavaScript function is the browser detect. Sometimes you want to give specific instructions or load a new page in case the viewer uses, for instance, Safari. Copy this script into your JavaScript files. It works immedi...
1 1531 posted 19 years ago by jonhenshaw
You can use this script to always keep the copyright notice on the footer of your website current. For example, instead of having to update the year at the beginning of each year, this script will display current year. I'm sure there's an easier way...
2 1611 posted 19 years ago by jonhenshaw
wrap the text that will become a pullquote in a span element and give it the class name "pullquote"
1 1393 posted 19 years ago by designerd
1 1349 posted 19 years ago by designerd
1 1547 posted 19 years ago by Roshambo
Patch para quitar el molesto cartel en una sola linea de codigo. Lo interesante es que hace una cola de funciones para el "OnLoad". Mas que nada sirve si tenes un sitio armado y tenes que meter este patch en todas tus paginas. Con la funcion "fixO...
2 1588 posted 19 years ago by inakiabt
Source: Browser inspecific referencing @ howtocreate
1 1250 posted 19 years ago by mlange
3 1580 posted 19 years ago by mlange
1 1399 posted 19 years ago by mlange
1 1318 posted 19 years ago by mlange
Stop the background image flickering on IE by including this code in the header of your page. See link for more information.
2 1928 posted 19 years ago by 1man
El modo de uso es el siguiente: function cargarContenido() { var p = new Request("prueba2.asp",respuesta); p.setMethod("GET"); p.addParam("saludo",$("txtSaludo").value); p.addParam("telefono",$("txtTelefono").value); p.callRequest();...
3 1741 posted 19 years ago by enzoscuro
3 1790 posted 19 years ago by powerkan
2 1190 posted 19 years ago by powerkan
Caja con esquinas redondeadas y un borde de diferente color tambien redondeado. Más info en: http://www.curvycorners.net/
0 1183 posted 19 years ago by aurele
No es necesario redondear los vertices de la imagen para darle una apariencia tal. Más info en: http://www.curvycorners.net/
0 1289 posted 19 years ago by aurele
Found on the jquery mailing list: http://jquery.com/discuss/2006-April/004625/ The url shows it in action, checking text when you move away from a field.
4 1889 posted 19 years ago by TC
0 1444 posted 19 years ago by Corhol
mran( float minimum_number , float maximum_number) (returns int)
1 1188 posted 19 years ago by mouseit101
Manejar argumentos y variables recibidas en JavaScript
1 1216 posted 19 years ago by Navegante
Resize a Popup to Fit an Image's Size By Peter Todorov February 10th 2003 Reader Rating: 9.1 If you're a Webmaster who has to deal with image galleries, then make a note of this clever script. It gives you a solution to a very common problem --...
1 1928 posted 19 years ago by zensir
Solo funciona para IE
5 1666 posted 19 years ago by aurele
If you want your pages to be valid XHTML-Strict, but you also wish to open external links in new window, the following snippet is doing just that—sets attribute target=“_blank” to all external links in a document to keep your code valid XHTML-S...
2 1826 posted 19 years ago by zensir
Using CSS is, of course, the preferred method of performing mouseover image swapping, but it's good to have a few tricks up your sleeve. Here's one way of doing it with JS, but the images have to be pre-loaded, or else there'll be a slight lag in the...
1 1206 posted 19 years ago by pckujawa