PDA

Click to See Complete Forum and Search --> : why won't imagemap show?


grrrafx
02-20-2007, 09:43 PM
Ladies and gentlemen(those of you far more well-versed in XML than me...)'
I wrote my code in notepad, and drew my imagemap in humble Microsoft Paint. When tested, my imagemap would not show.
Consider, please:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html>
<head>
<title>Working with Imagemaps</title>
</head>
<body bgcolor="#ffcc33">
<body>
<h1>WORKING WITH IMAGEMAPS IS FUN!</h1>
<p>Working with imagemaps is SUPPOSEDLY fun.<br />
I cannot say for myself, as yet.</p>
<p>
<img src="imagemaptest.jpg" alt="image map image" usemap="#imagemaptest" />
<map name="imagemaptest">
<area shape="rect" coords="31,49, 170,136" href="yellowrect.html" alt="yellow test link" />
<area shape="rect" coords="127,187, 291,275" href="greenrect.html" alt="green test link" />
<area shape="rect" coords="199,324, 435,369" href="redrect.html" alt="red test link" />
</map>
</p>
</body>
</html>
Why will my imagemap not show?
Thanks for any help and/or advice...:)

Drazan
02-20-2007, 11:13 PM
make sure your image is in the same directory as your file.

make sure your coordinates are not outside the image map dimensions

(btw- that's plain html)

=)
Jade