使用jquery突出显示多个地图区域

时间:2012-03-06 07:38:55

标签: c# jquery

如何使用jquery在鼠标悬停在外部链接的同时突出显示地图的多个区域。代码隐藏C#的区域id是动态的。谁能给我一个样品?

<div id="map">
<map name="scandinavia_map" id="scandinavia_map">
 <area id="area_finland" shape="poly" coords="193,64,207,78,217,80,226,90,228,104,229,114,234,122,234,133,237,144,254,157,251,172,208,234,196,307,206,312,246,311,306,283,339,228,339,202,290,74,281,71,274,50,277,42,272,34,266,33,262,29,252,34,245,38,243,53,245,60,234,72,228,68,222,72,212,71,198,58,197,58,198,62"></map> 
<script>$("#map area").mouseover(function() {
        var alt_text = $(this).attr('alt');
        $("#test").html(alt_text);
    })</script> </div>

0 个答案:

没有答案
相关问题