我有以下代码不起作用
我在弹出窗口中创建了这个div,通常会在弹出窗口中显示20个div。
我正在尝试mouseover它不工作,如果我在div本身的工作mousover事件。
有任何错误。鼠标悬停不起作用
<div dataindex="0" class="clstImages" id="dlstImages0"><img alt="Almond Branches in Bloom, San Remy, c.1890" title="Almond Branches in Bloom, San Remy, c.1890" src="http://imagecache5d.art.com/CropHandler/crop.jpg?img=21-2107-SA3ED00Z&x=0&y=0&w=400&h=400&size=2&maxw=100&maxh=100&mode=sq&q=100" id="eachimg">
</div>
$('.clstImages img').hover(function() {
alert("mouseover");
}, function() {
alert("mouseout")
});
创建的div(图像)的内容是动态的吗? – 2010-10-22 23:33:29
它的动态,每个弹出框共有20个div,图像位于上面的div内。 – kobe 2010-10-23 02:34:05
任何想法,为什么它不工作 – kobe 2010-10-23 04:29:46