Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image map support in firefox, chrome and other browsers

Are image maps supported in chrome and firefox? w3schools seems to suggest they are.

Given this, why would the following HTML fail? (Image is displayed but no links work - It does work correctly in IE)

<img src="Images/backgroundFinal.png" usemap="#mainImageMap" alt="MainBackground" style="border: none;" />
            <map id="mainImageMap">
                <area shape="rect" alt="Home Page" title="Home Page" coords="309,198,413,223" href="Default.aspx" target="" />
                <area shape="rect" alt="About me" title="About me" coords="245,334,319,353" href="About.aspx" target="" />
                <area shape="rect" alt="Gallery" title="Gallery" coords="437,271,497,300" href="Gallery.aspx" target="" />
                <area shape="rect" alt="Tattoo" title="Tattoo" coords="249,478,307,503" href="Tattoo.aspx" target="" />
                <area shape="rect" alt="Contacts" title="Contacts" coords="395,521,464,544" href="Contact.aspx" target="" />
            </map>
like image 764
Maxim Gershkovich Avatar asked Apr 03 '11 03:04

Maxim Gershkovich


People also ask

Can I use both Chrome and Firefox?

Yes, you can run both Firefox and Chrome. However, one will need to be the default browser. For example, Windows will need to know what browser to use when opening links in programs. Certain programs may be coded to only use Internet Explorer, so it is a good idea to leave that installed.

How does Firefox compare to other browsers?

Firefox outshines Chrome and other browsers when it comes to privacy. It blocks third-party tracking cookies by default, as well as cryptocurrency mining scripts and social trackers. Firefox also provides a private browsing mode that automatically deletes a user's search and page history if privacy is a chief concern.


1 Answers

Try changing <map id="mainImageMap"> to <map name="mainImageMap">. You can keep the id if required but just make sure a nameattribute` is there.

like image 175
Marcel Avatar answered Sep 30 '22 06:09

Marcel