highlighting tables

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

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

highlighting tables

Post by Virtuoso » 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: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Post by liquedus » 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: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

OnMouseOver event

Post by ruturajv » 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

Who is online

Users browsing this forum: No registered users and 1 guest