Below are the top ranked snippets.
14
Simple chatting script to be placed on a corner of a website 
Also a good example how to use ajax.

Also a good example how to use ajax.
7
This Function simply calculate the age of a person or someting else and returns the age.
12
Fade in/out multiple images like a slideshow.
7
I use this function when passing an array to a function being called from setTimeout();
5
This function returns a Date object being set at 12 A.M. It is useful for comparing dates where you don't know if they'll come set at the beginning of the day or not.
12
toddersbud
This shows how the computed style of each node differs from the computed style of its parent. The root element, which has no parent, is instead compared against the root of a blank HTML document.
* create a new bookmark called "compute styles" in your firefox toolbar. Place the snippet code in the location field of your "compute styles". click the compute styles bookmark, then click an element on the page with the crosshairs.
* create a new bookmark called "compute styles" in your firefox toolbar. Place the snippet code in the location field of your "compute styles". click the compute styles bookmark, then click an element on the page with the crosshairs.
5
Draws a line (with arrow head) between two given points.
6
More often than not, if your trying to work out what's going wrong with your subclass of InputStream, why the character encoding is getting lost in your database, or your file format reader is failing, you'll need to dump a byte buffer out in a useable form.
Here's two methods, one which appends to a StringBuffer, one which simply prints out to System.out
Tim.
(NB: The line: sb.append( "n" ) ; SHOULD have a leading slash ie: sb.append( "\n" ) ; but the formatter seems to remove it...
Here's two methods, one which appends to a StringBuffer, one which simply prints out to System.out
Tim.
(NB: The line: sb.append( "n" ) ; SHOULD have a leading slash ie: sb.append( "\n" ) ; but the formatter seems to remove it...
6
Toggles the visibility of an HTML element. Should be part of everyone's javascript toolkit
10
A prototype function to get an array of elements by id in an array









