Alternate Table Row-List Item | JavaScriptSource

Alternate Table Row-List Item

Brent Graham Feb 13, 2008

General

Use this script to make your table data and list items easy to read. No need to hassle with listing each alternate row coloring. Very easy to use.


NameExt.Start date
Bloggs, Fred135308/18/2003
Turvey, Kevin234202/05/1979
Mbogo, Arnold275509/08/1998
Shakespeare, Bill321112/11/1961
Fitz, Marvin555405/22/1995

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: alternateTableList.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(2 comments)

You'll need to post your question [a href="http://www.webdeveloper.com/forum/forumdisplay.php?f=3"]over on the forums[/a].

Lee Jun 26, 2008

Code works a treat but would like to apply it to individual tables on a page i.e. Have two tables but want to apply it to only one of them.[br /][br /]I come from a vb.net background so JavaScript makes little sense to me.[br /][br /]Many thanks[br /][br /]Steve

Steve Feb 14, 2008