Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make my table clickable? change colour when roll-over...

Status
Not open for further replies.

123456programmer

Programmer
Aug 3, 2003
105
AU
I would like to know if there are any ways to make my <TD> clickable.
In my .Php page I use tables like below:
<td WIDTH=101 HEIGHT=101 COLSPAN=2 bgcolor="#F7F7F9" class="stylie01"><div align="center">MENU</div></td>

I want not only the word "MENU" but I want the whole square to be clickable, and to change colour when mouse is over.

Javascript or CSS, anything...

thanks in advance.
 
I should have search the forum before posting...


I 'm using the solution Vragabond gave. (with classes)

I still have a question tho:
Does this method:
<tr class="normal" onClick="document.location = ' style="cursor: pointer;" onmouseover="this.className='hilite'" onmouseout="this.className='normal'">
Works aswell as with NS than it does with IE?
thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top