본문 바로가기
기타/프로그래밍 관련

Image map area view

by WebHack 2015. 3. 4.

http://jsfiddle.net/k67gq/6/


 <script type="text/javascript" src="http://davidlynch.org/projects/maphilight/jquery.maphilight.js"></script>

<div style="float: left">

    <img id="ImageMap1" src="http://geographyandhistory.wikispaces.com/file/view/solar_system.jpg/43347125/283x202/solar_system.jpg" usemap="#ImageMapmapAreas" />

    <map id="ImageMapmapAreas" name="ImageMapmapAreas">

        <area alt="" title="" href="#Earth" coords="228,151,53" shape="circle" data-maphilight='{"strokeColor":"0000ff","strokeWidth":5,"fillColor":"00ff00","fillOpacity":0.6}'/>

        <area alt="" title="" href="#Sun" coords="68,54,44" shape="circle" data-maphilight="{'strokeColor':'0000ff','strokeWidth':5,'fillColor':'00ff00','fillOpacity':0.6}"/>

    </map>

</div>


jQuery(function()

                            {

             jQuery('#ImageMap1').maphilight();

                            });