Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
javascript in_array object frame.
Usar:
Mediceau.Navegacion.marcar(['nav1','nav2'])
...
_--Nav 1
_--Nav 2
_--Nav 3
_--Nav 4
0
528
posted 16 years ago by nicolaspar
wrap the text that will become a pullquote in a span element and give it the class name "pullquote"
1
579
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
621
posted 17 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
672
posted 17 years ago by 1man
mran( float minimum_number , float maximum_number) (returns int)
1
414
posted 17 years ago by mouseit101
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
778
posted 17 years ago by zensir
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
763
posted 17 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
439
posted 17 years ago by pckujawa
Simple templating for innerHTML functions. Parses an input string (tmpl) for %(NAME) tokens, accepts an object (ns) as data and returns an output string.
1
523
posted 17 years ago by mattgay
The ideal use of this code would be to save the Javascript code as a .js file. Then use the HTML code at the bottom to call it wherever you want on the web page.
1
654
posted 17 years ago by Jaymoon
redirects a splash page if visited before. Number of days until expiry can be set
0
586
posted 17 years ago by markhope
Redirect a splash page using javascript. This snippet allows one redirect per session making the backwards navigation possible using the back button.
0
655
posted 17 years ago by markhope
function prints a serie of random numbers but without the next one being the same as the previous. to print, just call the function in the body
1
643
posted 17 years ago by dandyna
This little javascript will toggle the div object to create collpse/expand effect on web page. Treat it as a poor man's solution for the TreeView.
0
495
posted 17 years ago by chengkai
This function allows an object's property names to be read by using an index. The properties can be accessed like: someobject.propertyNames[0] or someobject.propertyValues[0]. But you first have to make the object's properties available by calling so...
2
614
posted 17 years ago by rolandog