View Full Version : Cannot use usemap with background image?

Feb 27th, 2003, 02:54 AM
I'm trying to use usemap with a background image and it does not work -- apparently this is not possible?

<td width="700" height="458" valign="top" background="some_image.jpg" usemap="#some_image" alt="">
<map name="some_image">
<area shape="circle" coords="414,336, 56" href="page1.php" title="Page 1" alt="See Page 1" >
<area shape="circle" coords="151,369, 46" href="page2.html" title="Page 2" alt="See Page 2" >

Thanks in advance for any suggestions.

Feb 27th, 2003, 03:20 AM
The map doesn't mean anything without an association to an image through the name you have given it.

<img src="" alt="" usemap="#some_image">

You could use a transparent image.

Cybertooth Tiger
Feb 28th, 2003, 01:14 AM
while the background is made from an image, it is not "in" the page, its behind it as part of the body.

As Meow said, you need a transperant gif the appropiate size to create the effect you want, but don't forget to test at different screen resolutions, as the background will move.