Javascript Mapster-如果选择了每个区域,如何打开警报?
首先:我不是一个爪哇人!我只是在构建html站点时使用它 现在我的问题是: 我想建立一个小搜索图片。因此,我定义了使用映射图片中的一些区域,并使用mapster选择它们 现在我需要一个可能性,建立一个警报,如果所有10个地区都被选中。 比如:祝贺你,你已经找到了一切 代码如下:Javascript Mapster-如果选择了每个区域,如何打开警报?,javascript,javascript-events,Javascript,Javascript Events,首先:我不是一个爪哇人!我只是在构建html站点时使用它 现在我的问题是: 我想建立一个小搜索图片。因此,我定义了使用映射图片中的一些区域,并使用mapster选择它们 现在我需要一个可能性,建立一个警报,如果所有10个地区都被选中。 比如:祝贺你,你已经找到了一切 代码如下: <img id="Map" src="bilderraetsel_gross.jpg" border="0" width="1000" height="750" orgWidth="1000" orgHei
<img id="Map" src="bilderraetsel_gross.jpg" border="0" width="1000" height="750" orgWidth="1000" orgHeight="750" usemap="#Map" alt="Bilderraetsel" />
<script>
$(document).ready(function ()
{
$('#Map').mapster({
singleSelect : false,
highlight : null,
mapKey : 'data',
altImage : null,
isDeselectable : false,
fill : true,
fillColor: '0080FF',
fillOpacity : 0.5,
});
});
</script>
<map name="Map" id="Map">
<area style="cursor:crosshair" data="1" shape="circle" coords="641,378,7" href="#">
<area style="cursor:crosshair" data="2" shape="circle" coords="918,642,11" href="#">
<area style="cursor:crosshair" data="3" shape="circle" coords="32,558,8" href="#">
<area style="cursor:crosshair" data="4" shape="circle" coords="108,584,8" href="#">
<area style="cursor:crosshair" data="5" shape="circle" coords="195,189,15" href="#">
<area style="cursor:crosshair" data="6" shape="circle" coords="436,229,6" href="#">
<area style="cursor:crosshair" data="7" shape="circle" coords="925,346,21" href="#">
<area style="cursor:crosshair" data="8" shape="circle" coords="949,408,13" href="#">
<area style="cursor:crosshair" data="9" shape="circle" coords="295,521,14" href="#">
<area style="cursor:crosshair" data="10" shape="circle" coords="459,309,11" href="#">
</map></p>
$(文档).ready(函数()
{
$('#Map').mapster({
singleSelect:false,
突出显示:空,
mapKey:'数据',
altImage:null,
isDeselectable:false,
填充:是的,
fillColor:'0080FF',
填充不透明度:0.5,
});
});
在标题中,我使用以下内容:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="jquery.imagemapster.js"></script>
有人能帮我吗?:)
提前感谢,,
赛科