Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anchors in Image map

Status
Not open for further replies.

vpalag

Programmer
Apr 28, 2002
11
IN
Hi All,
I need a help on Image map. I want to create anchors to specific parts of image map. I tried to do the following way but it always jumps down to the begining of Image map.
For example if I click on the link "New" it would like to jump to the new portion of image map. Please help me. Thanks.


<html>
<body>
<DIV ALIGN=CENTER>


<a href=&quot;#Contacts&quot;>Contacts</a><br>
<a href=&quot;#Products&quot;>Products</a><br>
<a href=&quot;#New&quot;>New</a><br>






<MAP NAME=&quot;map1&quot;>
<a name=&quot;Contacts&quot;></a><AREA
HREF=&quot;contacts.html&quot; ALT=&quot;Contacts&quot; TITLE=&quot;Contacts&quot;
SHAPE=RECT COORDS=&quot;6,116,97,184&quot;>
<a name=&quot;Products&quot;></a><AREA
HREF=&quot;products.html&quot; ALT=&quot;Products&quot; TITLE=&quot;Products&quot;
SHAPE=CIRCLE COORDS=&quot;251,143,47&quot;>
<a name=&quot;New&quot;><AREA
HREF=&quot;new.html&quot; ALT=&quot;New!&quot; TITLE=&quot;New!&quot;
SHAPE=POLY COORDS=&quot;150,217, 190,257, 150,297,110,257&quot;></a>
</MAP>

<IMG SRC=&quot;testmap.gif&quot;
ALT=&quot;map of GH site&quot; BORDER=0 WIDTH=300 HEIGHT=300
USEMAP=&quot;#map1&quot;><BR>

[ <A HREF=&quot;contacts.html&quot; ALT=&quot;Contacts&quot;>Contacts</A> ]
[ <A HREF=&quot;products.html&quot; ALT=&quot;Products&quot;>Products</A> ]
[ <A HREF=&quot;new.html&quot; ALT=&quot;New!&quot;>New!</A> ]
</DIV>
</body>
</html>

 
oh dear!

try wrapping areas :

<a name=&quot;Contacts&quot;><AREA
HREF=&quot;contacts.html&quot; ALT=&quot;Contacts&quot; TITLE=&quot;Contacts&quot;
SHAPE=RECT COORDS=&quot;6,116,97,184&quot;></a>

I have to admit this is one weird way of doing things and I don't know if it will work. However maybe you should consider something completely different to answer your problem. Trying something more conventional would seem just right here.

Hope this helps.

Gary Haran
 
Hey xup,

Thanks for your reply, I have this in my code already in
the &quot;New&quot; part of the imgmap....but still don't work.

Lemme see, Cheers,
VP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top