下面是我的代碼,這是基本的問題任何人都可以幫助解決這個問題, 我希望圖像在用戶懸停在某個時間之後出現。說的如3秒如何爲Rollover設置超時函數
function MouseRollover(MyImage) {
MyImage.src = "http://www.blirk.net/wallpapers/800x600/universe-wallpaper-2.jpg";
}
function MouseOut(MyImage) {
MyImage.src = "https://upload.wikimedia.org/wikipedia/commons/2/24/Ad-MediumRectangle-300x250.jpg";
}
<div align="center">
<!--The rollover image displays here.-->
<img src="https://upload.wikimedia.org/wikipedia/commons/2/24/Ad-MediumRectangle-300x250.jpg" border="0px" width="" height="" onMouseOver="setTimeout(MouseRollover(this), 3000);" onMouseOut="MouseOut(this)" />
</div>