Alternate Table Row-List Item
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.
| Name | Ext. | Start date |
|---|---|---|
| Bloggs, Fred | 1353 | 08/18/2003 |
| Turvey, Kevin | 2342 | 02/05/1979 |
| Mbogo, Arnold | 2755 | 09/08/1998 |
| Shakespeare, Bill | 3211 | 12/11/1961 |
| Fitz, Marvin | 5554 | 05/22/1995 |
Notes
- Created by: Brent Graham
- Web Site: http://brentg.org/
- Posted: February 13, 2008
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].
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