Welcome To Snipplr
Everyone's Recent JavaScript Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
just close() wont always do it in ff, so use this: (yeh cba to edit out escapes)
5
611
posted 16 years ago by deadmoon
JavaScript Tooltip libraries number about as many as rounded CSS corner libraries.
Jonathan Weiss thought the ones he saw were "too complicated and bloated, did just too much and most of the time were still not flexible enough with the tooltip. So...
1
482
posted 16 years ago by jonhenshaw
javascript in_array object frame.
Usar:
Mediceau.Navegacion.marcar(['nav1','nav2'])
...
_--Nav 1
_--Nav 2
_--Nav 3
_--Nav 4
0
475
posted 16 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
608
posted 16 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
583
posted 16 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
567
posted 16 years ago by jonhenshaw
wrap the text that will become a pullquote in a span element and give it the class name "pullquote"
1
531
posted 16 years ago by designerd
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
574
posted 16 years ago by inakiabt
Stop the background image flickering on IE by including this code in the header of your page. See link for more information.
2
597
posted 16 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
538
posted 16 years ago by enzoscuro
Caja con esquinas redondeadas y un borde de diferente color tambien redondeado. Más info en: http://www.curvycorners.net/
0
413
posted 16 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
449
posted 16 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
641
posted 16 years ago by TC