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

make background image link?

Status
Not open for further replies.

j111111

Technical User
Dec 13, 2002
46
GB
Hello,

I have a background image in one of my tables that I want to be a link to another site.

I tried drawing a cell over the part of the image I want to be the link (so I could link that) but that messes the alignment of other images/cells/tables in the page.

Does anyone know if it's posible to make the actual background into a link?

Thanks
 
you could try this

<body onclick=&quot;window.location='url'&quot;>

you might need to drop the ' around the url but try putting that in the body tag and see if itworks [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Thanks, but it just linked whenever the mouse was clicked anywhere in the document body.

I've been sat all morning changing random tiny details of my code, one bit at a time - changing an empty <td> by 1 pixel sorted it out in the end.

Don't know why it worked because it made everything else in the table not add up to the correct size, but it worked, so I shan't complain....

Cheers for the suggestion though

Josie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top