I've used HTML map
and area
tags to create a rectangle hotspot in an image. Now I'm trying to see where is the hotspot on the image when the page loads. How can I make a hotspot area visible in HTML? Does it require using CSS or JQuery, or what is the correct approach?
<div id="container1" class="container" style="background: #CFCFCF">
<img id="1" usemap = "mymap" src="http://www.goodhousekeeping.com/cm/goodhousekeeping/images/ue/ghk-dogs-Australian-Shepherd-mdn.jpg" />
</div>
<div id="container2" class="container" style="float:right;background: #FFFFFF">
<img id="2" usemap = "mymap" src="http://www.goodhousekeeping.com/cm/goodhousekeeping/images/ue/ghk-dogs-Australian-Shepherd-mdn.jpg" />
</div>
<div id="container3" class="container" style="background: #CFCFCF">
<img id="3" usemap = "mymap" src="http://www.goodhousekeeping.com/cm/goodhousekeeping/images/ue/ghk-dogs-Australian-Shepherd-mdn.jpg" />
</div>
<map name="mymap" id="mymap" ">
<area id="m1" shape="rect" coords="87,355,130,392" href="http://www.google.com" target="_blank" />
</map>