Javascript 图像映射jquery
我有一张带有各种图像地图的图像,例如:Javascript 图像映射jquery,javascript,jquery,imagemap,Javascript,Jquery,Imagemap,我有一张带有各种图像地图的图像,例如: <map id="rade_img_map_1335199662212" name="rade_img_map_1335199662212"> <area href="http://" coords="10,10,160,47" shape="RECT" /></map> 图像地图是图像地图,你的图像在哪里?不知道你在问什么。悬停时你想做什么?你在盘旋什么?ul与图像映射的关系如何?这听起来很模糊,你能给我们一个JSF
<map id="rade_img_map_1335199662212" name="rade_img_map_1335199662212">
<area href="http://" coords="10,10,160,47" shape="RECT" /></map>
图像地图是图像地图,你的图像在哪里?不知道你在问什么。悬停时你想做什么?你在盘旋什么?ul与图像映射的关系如何?这听起来很模糊,你能给我们一个JSFIDLE或一些例子,或者进一步说明你想要什么吗?我明白了,列表项是图像。请看我的编辑。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
<ul id="level3">
<li>Test</li>
<li>rwer</li>
<li>wer</li>
<li>sdf</li>
$(document).ready(function () {
$("#rade_img_map_1335199662212").hover(function () {
$("li#rs1").removeClass("active"); //Make sure no other "active" classes exist
$(this).addClass("active"); //Add the active class to the area that was clicked
});
});