- 關於此代碼,它加載閃存onMouseenter,我怎麼會得到某種延遲,(可以使用加載圖像),直到瀏覽器加載閃存。
我有10個不同的部分。如果我在它們之間快速移動鼠標,則會多次加載閃存並最終停止閃爍。jquery獲取延遲,直到加載
$(".section").mouseenter(function() {
$(this).html('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0" width="170" height="125"><param name="movie" value="http://static.awempire.com/flash/live_feeds/live_feed.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="flashvars" value="appletroot=http://static.awempire.com/flash/live_feeds/&appletskin=template8/template01.swf&appletcol=900000&psid=ddany23&campaign_id=20520&pstour=t1&psprogram=REVS&site=jsm&flags=137438953473,137438953504,1,32&lp_lang=auto" /><embed src="http://static.awempire.com/flash/live_feeds/live_feed.swf" width="170" height="125" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" flashvars="appletroot=http://static.awempire.com/flash/live_feeds/&appletskin=template8/template01.swf&appletcol=900000&psid=ddany23&campaign_id=20520&pstour=t1&psprogram=REVS&site=jsm&flags=137438953473,137438953504,1,32&lp_lang=auto"></embed></object>');
});
$(".section").mouseleave(function() {
$(this).html('ddd');
});
請確保通過旁邊的幫助旁邊的複選標記接受問題的答案。此外,爲了格式化代碼,突出顯示您想要的代碼,並點擊頂部的'101010'按鈕,它會將其空間隔開超過4個空格,從而觸發代碼格式化。 – 2010-07-22 16:11:55