Click to See Complete Forum and Search --> : an image map???


ajkiwi88
02-11-2005, 11:34 AM
<html>
<head>
<title>New Page 1</title>
</head>

<body bgcolor="#000033">
<center>
<img src="images/logo4.gif" width="476" height="452" usemap="#navmap" >
<map name="navmap">
<area shape="poly" coords="0.0.238.226" href="home.html" alt="home">
<area shape="rect" coords="0.226.238.226" href="home.html" alt="home">

</map>
</body>

</html>

so how come this does not work???
thanks for any help
cyaz
aj

Pittimann
02-11-2005, 11:41 AM
Hi!

The coords have to be separated by commas, not periods. Besides you are using 'shape="poly"' in one area and only have two pairs of coordinates in it. That will define a line and not really an area.

Cheers - Pit

mjfwebb
02-11-2005, 11:41 AM
Originally posted by ajkiwi88
<html>
<head>
<title>New Page 1</title>
</head>

<body bgcolor="#000033">
<center>
<img src="images/logo4.gif" width="476" height="452" usemap="#navmap" >
<map name="navmap">
<area shape="poly" coords="0.0.238.226" href="home.html" alt="home">
<area shape="rect" coords="0.226.238.226" href="home.html" alt="home">

</map>
</body>

</html>



you need to change the periods (.) to commas (,) in the coords=" "

the tree
02-11-2005, 11:43 AM
--

mjfwebb
02-11-2005, 11:46 AM
yeah, well it works fine in html, no need to put it into css,

just change
<area shape="poly" coords="0.0.238.226" href="home.html" alt="home">
<area shape="rect" coords="0.226.238.226" href="home.html" alt="home">

to

<area shape="rect" coords="0,0.238,226" href="home.html" alt="home">
<area shape="rect" coords="0,226,238,226" href="home.html" alt="home">

Pittimann
02-11-2005, 11:52 AM
Hi!

Even though the tree edited his/her post (don't know why - it was absolutely right to post it): you should really clean up your markup. Apart from that, the quick shot you took now, still has

<area shape="rect" coords="0,0.238,226" href="home.html" alt="home">

an ugly period instead of a comma. You should realize, that computers are idiots and very stubborn.

Cheers - Pit

ajkiwi88
02-11-2005, 12:42 PM
cheers for all your help thanks so much it works now

cyaz
aj

Pittimann
02-11-2005, 12:53 PM
Hi!

As far as I am concerned: you're welcome. And sorry, I confused one of mjfwebb's posts with being yours. However, this has to be repeated: you should really clean up your markup.

Cheers & good luck - Pit