Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

highlighting tables

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

highlighting tables

Postby 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.
User avatar
Virtuoso
php-forum Active User
php-forum Active User
 
Posts: 268
Joined: Mon Jul 21, 2003 7:05 am

Postby 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....
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

OnMouseOver event

Postby 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'">
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.