我有以下代碼不起作用
我在彈出窗口中創建了這個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