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!

imagemaps in css

Status
Not open for further replies.

Mute101

Programmer
Jun 28, 2001
428
GB
I have an image as a background for a <td> tag, the cell is just for a link. The text in the tag is quite small so I would like to use an image map to make the entire <td> tag a link but because the image is not actually referenced by an <img> tag is it possible to do it in the css class.

Normally I would just put the text directly on the image but I need to be able to change it easily so it can't be part of the graphic.

Any ideas??

Mute
0_o
 
You can actually associate onClick with a <td>, though I have no idea which browsers support this (IE 5.5 is, anyway).

<td onClick=&quot;window.location.href='myfile.htm';&quot;><a href=&quot;myfile.htm&quot;>myFile</a></td>
 
It works also in IE4 but don't work in NN4.# (I don't know about NN6)

To make your whole <TD> look like a real link:

<td style=&quot;cursor: hand;&quot; onClick=&quot;window.location.href='myfile.htm';&quot;>

Works also not in NN4.#(I don't know about NN6)

Erik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top