Imagemap链接不起作用

时间:2016-02-23 14:46:11

标签: imagemap

我使用此生成器创建了一个imagemap: http://imagemap-generator.dariodomi.de/ < /a>

...但每个图标上的链接都不起作用。我不知道为什么。您可以在此未完成网站的主页上看到地图:

&#xA;&#xA;

http://staging.pixiechildcare.co.uk/index.php

&#xA;&#xA;
 &lt; img src =“img / map-lg.jpg“alt =”“usemap =”#Map“/&gt;&#xA; &lt; map name =“Map”id =“Map”&gt;&#xA; &lt; area id =“tree”class =“shape”alt =“dfgdf”title =“dfgdgf”href =“http://staging.pixiechildcare.co.uk/index.php”shape =“poly”coords =“ 89,47,146,43,189,73,205,121,165,149,114,143,95,106“/&gt;&#xA;&#xA; &lt; area id =“cloud”class =“shape”alt =“”title =“”href =“http://staging.pixiechildcare.co.uk/index.php”shape =“poly”coords =“610, 41,654,62,665,104,648,146,614,175,558,127,565,64“/&gt;&#xA;&#xA; &lt; area id =“splat”class =“shape”alt =“”title =“”href =“http://staging.pixiechildcare.co.uk/index.php”shape =“poly”coords =“915,175,958,202,969,229,958,261,913,305,861,244,873,191” /&GT;&#XA;&#XA; &lt; area id =“ladybird”class =“shape”alt =“”title =“”href =“http://staging.pixiechildcare.co.uk/index.php”shape =“poly”coords =“1120, 110,1160,130,1172,156,1167,188,1116,241,1066,192,1073,129“/&gt;&#xA;&#xA; &lt; area id =“ball”class =“shape”alt =“”title =“”href =“http://staging.pixiechildcare.co.uk/index.php”shape =“poly”coords =“1128, 359,1169,377,1182,414,1174,442,1127,488,1083,453,1078,380“/&gt;&#xA;&#xA; &lt; area id =“music”class =“shape”alt =“”title =“”href =“http://staging.pixiechildcare.co.uk/index.php”shape =“poly”coords =“730,362,772,378,786,411,779,445,738,491,681,433,683,390” /&GT;&#XA;&#XA; &lt; area id =“umbrella”class =“shape”alt =“”title =“”href =“http://staging.pixiechildcare.co.uk/index.php”shape =“poly”coords =“519,228,549,237,572,275,568,314,519,363,465,308,480,248” /&GT;&#XA;&#XA; &lt; area id =“train”class =“shape”alt =“”title =“”href =“http://staging.pixiechildcare.co.uk/index.php”shape =“poly”coords =“308,284,344,308,358,347,353,375,306,426,258,370,270,305” /&GT;&#XA; &LT; /地图&GT;&#XA;  
&#XA;

1 个答案:

答案 0 :(得分:1)

在“custom.js”中,当您点击具有类shape的元素时,您明确阻止了任何操作:

$(".shape").click(function(){
    event.preventDefault();
});

删除它,它应该工作...