mpclubfoot
01-22-2003, 05:56 PM
Greetings,
I have a clickable image that links to anchors within the same page. The html below works fine in IE5 but doesn't work in IE5.5 or IE6.
<map name="myMap">
<area shape="circle" coords="x1,y1,r1" href="anchor1">
<area shape="circle" coords="x2,y2,r2" href="anchor2">
</map>
The only article I could find in the MSKB (http://support.microsoft.com/) (Q274586, if you're interested) about anchors is actually about linking from one frame to anchors in another. Thinking, "what have I got to lose?", I tried the suggested work around using the scrollIntoView() object method. My ScrollTo() function is located in an external JS file. Again, this html works in IE5 but not in IE5.5 or IE6.
function ScrollTo(name)
{document.anchors.item(name).scrollIntoView();}
<map name="myMap">
<area shape="circle" coords="210,149,16"href="javascript:ScrollTo('anchor1')">
<area shape="circle" coords="293,230,16"
href="javascript:ScrollTo('anchor2')">
</map>
Any ideas as to why neither of these work? Thanks in advance...
I have a clickable image that links to anchors within the same page. The html below works fine in IE5 but doesn't work in IE5.5 or IE6.
<map name="myMap">
<area shape="circle" coords="x1,y1,r1" href="anchor1">
<area shape="circle" coords="x2,y2,r2" href="anchor2">
</map>
The only article I could find in the MSKB (http://support.microsoft.com/) (Q274586, if you're interested) about anchors is actually about linking from one frame to anchors in another. Thinking, "what have I got to lose?", I tried the suggested work around using the scrollIntoView() object method. My ScrollTo() function is located in an external JS file. Again, this html works in IE5 but not in IE5.5 or IE6.
function ScrollTo(name)
{document.anchors.item(name).scrollIntoView();}
<map name="myMap">
<area shape="circle" coords="210,149,16"href="javascript:ScrollTo('anchor1')">
<area shape="circle" coords="293,230,16"
href="javascript:ScrollTo('anchor2')">
</map>
Any ideas as to why neither of these work? Thanks in advance...