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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

highlighting a position in a table

Status
Not open for further replies.

rewdee

Programmer
Aug 17, 2001
295
US
Good Morning

I would like to create a function that when an user clicks an image map it will hyperlink to a spot in a table that will become highlighted. I can do the image map and hyperlinks but I cannot do the highlighting. I imagine it would be some on focus event but I am unsure of how to write from there. Can anyone share some code or point me to a web page that can show me how?

Thanks,
Rewdee
 
This should get you going in the right direction:
Code:
<TABLE BORDER=&quot;1&quot;>
 <TR>
  <TD onClick=&quot;document.getElementById('hi').style.backgroundColor='yellow';&quot;>Click Here</TD>
  <TD ID=&quot;hi&quot;>This will highlight</TD>
 </TR>
</TABLE>
Kevin
slanek@ssd.fsi.com
 
Great Kevin!!! That's all I need.

Rewdee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top