highlighting tables

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

Post Reply
User avatar
Virtuoso
php-forum Active User
php-forum Active User
Posts: 267
Joined: Mon Jul 21, 2003 7:05 am
Contact:

Sun Sep 14, 2003 4:52 am

How do you make it so when your mouse moves over the table, it will highlight it?
Also how do you make it so you can click any part of the table to goto a link.

liquedus
php-forum Active User
php-forum Active User
Posts: 264
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Sun Sep 14, 2003 5:39 am

How do you make it so when your mouse moves over the table, it will highlight it?


styles

and there are plenty of examples on google about this topic....

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Sun Sep 14, 2003 9:33 pm

This requires OnMouseOver event

use a function or directly call for changing the background color of the table.

Code: Select all

<td style="CURSOR:pointer; CURSOR:hand;" onClick="window.location.href='http://somelocation'" onMouseOver="this.style.background='#FFFFFF'" onMouseOut="this.style.background='#E4EAF2'">

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest