The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> usemap="#Map", no #Map defined on website but map works
p3ppi
post May 8 2022, 07:24 PM
Post #1





Group: Members
Posts: 1
Joined: 8-May 22
Member No.: 28,342



Hello,

the website ipchicken.com has the the following line in its source code:

CODE

<img src="images/main_03.gif" width="577" height="126" usemap="#Map" border="0">


But nowhere in the source code is a definition of #Map. The links on the image do work though.

Where else can the #Map be defined other than the source code?

thank you for your help =)

regards
p3ppi
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post May 8 2022, 07:42 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,114
Joined: 9-August 06
Member No.: 6



QUOTE(p3ppi @ May 9 2022, 02:24 AM) *

But nowhere in the source code is a definition of #Map. The links on the image do work though.


Yes, it's there. At line 76 or thereabout.

HTML
<map name="Map">
<area shape="rect" coords="373,71,418,94" href="learn.html">
<area shape="rect" coords="136,72,223,94" href="https://www.ipchicken.com">
</map>


Maybe you looked for #Map with the hash sign? The hash is only used in the usemap attribute, not in the target name. The construct with the hash is called a fragment identifier, same as you use with an ordinary link to specific spot in a page.
HTML
<a href="#spot">Go to a specific spot in the page</a>
....
<p id="spot">
Blah blah blah...</p>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th May 2022 - 05:57 PM