【发布时间】:2013-04-14 22:27:18
【问题描述】:
我试图让一个 div 与悬停区域的替代文本一起显示 - 相对于悬停区域定位。
我可以显示文本,但位置不正确。
这是我的 js:
$(document).ready(function() {
if($('#Map')) {
$('#Map area').each(function() {
var altText = $(this).attr("alt");
$(this).mouseover(function() {
$("#popup").html(altText);
$('#popup').show();
});
$(this).mouseout(function() {
var altText = $(this).attr("alt");
$('#popup').hide();
});
});
}
});
【问题讨论】:
-
你在使用传单吗?
标签: javascript map hover area