On Sat, 10 Dec 2005 20:58:07 +1300, Enkidu wrote:
> Rob J wrote:
>> I have a site I decided to put an image map into to handle an image with
>> different areas linking to different places.
>>
>> With the image map included in the source file it works fine but I
>> figured it would be easier to put the image map into another file so it
>> only has to be changed in one place if the links or image are changed.
>>
>> This is supposed to work with <img src="..." usemap="file.html#mapname">
>> And the file contains
>>
>> <map name="mapname">
>> <area name="RNZ" shape = "rect" coords = "0,18,239,46" href =
>> "http://somesite/">
>> <area name="NZRH" shape = "rect" coords = "240,18,479,46" href =
>> "http://somesite/">
>> <area name="NZD" shape = "rect" coords = "480,18,719,46" href =
>> "http://somesite/">
>> <area name="NZTV" shape = "rect" coords = "720,18,959,46" href =
>> "http://somesite/">
>> </map>
>>
> One thing that I think is wrong is the usemap parameter. What you have
> says 'look for the anchor 'mapname' in 'file.html'. If the mapfile is a
> separate file called 'mapname' then it should be 'usemap=mapname' if
> 'mapname' is in that same directory. Or you could specify the relative
> or absolute URL of the mapfile.
>
> As to the contents of the file, I'm not sure, but that format doesn't
> look familiar, but it's a long time since I used image maps.
>
> Cheers,
>
> Cliff
<map name="map">
<area alt="" shape="poly" coords="2,11,8,116,23,115,20,10"
href="#modern_operating_systems"
ONMOUSEOVER="update_sel_book(modern_operating_syst ems,this.href);" />
<area alt="" shape="rect" coords="64,13,76,115" href="#computer_networks"
ONMOUSEOVER="update_sel_book(computer_networks,thi s.href);" />
stolen from working example at
http://www.simtec.co.uk/appnotes/AN0017/
--
To be a kind of moral Unix, he touched the hem of Nature's shift.
-- Shelley