Navigation Menu

Site Contents
What's New?


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Internet.commerce

Partner With Us
Find Software
Domain registration
Shop Online
Car Donations
Imprinted Gifts
Logo Design
PDA Phones & Cases
Imprinted Promotions
Computer Deals
Hurricane Shutters
Corporate Awards
Phone Cards
Dental Insurance
Web Design

Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


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


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum]

    
   
       
[optional field]
 
[optional field]

   

Comments feed Comment Feed RSS 2.0

1. From: Steve
02/14/2008 11:27:29

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.

I come from a vb.net background so JavaScript makes little sense to me.

Many thanks

Steve

2. From: Lee (Admin)
06/26/2008 10:57:56

You'll need to post your question over on the forums.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.