The table row is converted to change color during a "mouseover" event.
But the mouse cursor will only turn to a hand sign if it hovers over the link. If your mouse pointer moves away from the <a> link, you will see this:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPt_P-KHswI1gRQM9Z34QKnk80g6Vd-DpAyumsFjUAwL0Qwtj64_31y0johVZ9xPTE00_5dg4nm6IAzoqgEBiND4SBeX1psqUODG5iJpX8NvYtrHwblC8hyphenhyphenkw4RSP5xSOQ81uefe7qtO0/s400/2010_1_25_mouse_cursor1.gif)
For those who are used to Windows or Mac environment will not be happy about this. In order to make it more user-friendly, a simple code can be added to the <TD>:
onmouseover = "this.style.cursor='pointer'"
Then it will look like this:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifzwsiLetRoQ-jlPWpmQfhL7s9tw_BT8GE8AasqqTZ_SP-HCIR99FxnXleEllgwtL6hgF962Etx5S7Fp0XNrmlalz9EIn0MXzodfZytwjdAfxQJEoT7NVCUh8qLzNxGQ6bB7M1s8LAutE/s400/2010_1_25_mouse_cursor2.gif)
Note that if your <TD> already have an mouseover event handler, you can add this code by using a ';' after your handler. For example:
onmouseover = "changecolor(); this.style.cursor='pointer'"
Here we go! It now looks professional right?
No comments:
Post a Comment