Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 39 40 41 42 43 ... 47
3 479 posted 14 years ago by johnloy
Firefox ignores the alt tag on images and uses the title tag whereas IE uses the alt tag. This javascript code copies the text in all image alts to the image's title. Best when placed at the footer of each page
1 435 posted 14 years ago by ezerick
0 281 posted 14 years ago by johnloy
1 399 posted 14 years ago by rwczippy
1 414 posted 14 years ago by ezerick
0 293 posted 14 years ago by 6e
I wrote this very quickly for a form I parse that allows a user to send a page to up to 5 friends. The script adds a click event to an image of a + sign beside an input box. When clicked if the user hasn't already added 5 friends to email, additional...
9 635 posted 14 years ago by dmosher
0 495 posted 14 years ago by Meestercor
Usage:
1 409 posted 14 years ago by mattkenefick
Just to include and implement the SWFObject to an HTML body from a generic "/js/" directory with some basic varibles. [applies to OLD version of SWF Object]
1 366 posted 14 years ago by mattkenefick
A Tiny JavaScript liberary for Behaviour-Driven Development (BDD).
1 547 posted 14 years ago by ishikawa
This is the javascript file for code which implements the Secure Hash Algorithm 1 as defined in FIPS 180-1 published April 17, 1995.
1 564 posted 14 years ago by ishikawa
It redirects the url with JS.
0 450 posted 14 years ago by skywalker
Slim down the size of your javascript by using these custom functions.
2 388 posted 14 years ago by neal_grosskopf
This function was respectfully borrowed from TextMate and ported to PHP. Thanks to Allan Odgaard for the function! ;) Obviously, this can be extended a lot more, but I wanted to keep it as simple as possible for the example.
0 668 posted 14 years ago by koncept
/* if (globalVariable) { But this wouldn't work. That code is actually checking to see if the defined variable globalVariable has a null value. If the variable has not been defined, that code will cause an error. Instead, here is the code that...
0 343 posted 14 years ago by zha
Flash sucks, embedding it sucks more, find out how to make it not suck.
2 597 posted 14 years ago by neal_grosskopf
Note that the comment is part of the code here. IE 5+ (including Mac) will evaluate to true by using conditional compilation.
0 467 posted 14 years ago by cczona
*"Only the elements which are are selected through the $ selector will get the extra DOMAssistant methods added to it."
0 348 posted 14 years ago by cczona
How to use: 1) < script type="text/javascript" src="path-to-file.js"... 2) < body onload="oHW.preMontar('img1_on.jpg','img2_on.jpg','img3_on.jpg');"... 3) < a href="#" onmouseout="oHW.Restore()" onmouseover="oHW.Cambiar('mnind','img1_on.jpg'...
2 571 posted 14 years ago by hellion
Use this snippet to quickly insert onclick="window.open();" into your HTML... --- Snippets can save you time and hassle of typing out bits of code that you frequently use by adding them into your files by simply double-clicking the name of the Sn...
1 473 posted 14 years ago by hellion
I got this code from http://blog.vishalon.net/Post/57.aspx The actual two methods required are function doGetCaretPosition (ctrl) { var CaretPos = 0; // IE Support if (document.selection) { ctrl.focus (); var Sel = document.select...
3 3263 posted 14 years ago by arunpjohny
1 ... 39 40 41 42 43 ... 47