
|
|
|||
Striped Tables Using JavaScriptBy Paul McCarthy2008-01-23
Introduction JavaScript can be incredibly useful when you need to automate repetitive tasks. In this article we'll implement a simple JavaScript function that will apply alternate striped rows to a table. We'll implement this technique using unobtrusive JavaScript. Resources for the striped tables tutorialDownload the required resources before beginning this tutorial. Start by opening the file 'striped-tables-example.htm'. This is the table we're going to add stripes to using JavaScript:
Rather than applying a class to every other row to assign the alternate background rows, we can let JavaScript do the work for us. Tutorial Pages: » Introduction » The JavaScript » Benefits of JavaScript striped tables |
||||
| About the NetVisits, Inc Network | Write For Us | Advertise Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy. |
Visit other NetVisits, Inc. sites: |