DHTML: Spicing up Data Tables with Highlighting Rows

In the scripting and programming world we find many intimidating terms like "function literals." What in the world is a function literal? In this article, we'll show you how a function literal will allow you to attach some functionality to an event for every row of a data table. In the end, you'll have a nice looking table where the row that is moused over is highlighted for the user - all with alternating row colors and less code than you might think!
$2.79
- OR -

Overview

Table of Content:

  • The Data Table
  • Building the Script
    • Use getElementsByTagName()
    • Loop through rows we want
    • Objects and properties
  • And now for some magic
    • Function literals
    • But what about this?
    • One more problem
  • Conclusion

Reviews

Be the first to write a review

You must me logged in to write a review.