0
如何檢測更改如果我有鼠標懸停縮略圖圖像,主圖像將替換爲縮略圖,我相信onLoad()
只會觸發一次。檢測圖像更改事件
如何檢測更改如果我有鼠標懸停縮略圖圖像,主圖像將替換爲縮略圖,我相信onLoad()
只會觸發一次。檢測圖像更改事件
如果我理解正確的話:
使用onmouseover
。 onload
是一個文檔事件處理程序。
<img src="images/oldImage.jpg" onmouseover="this.src='images/newImage.jpg'; alert("Mouse detected over thumbnail. New fullsize Image Loaded!");>
您能否清楚您的問題 – Aziz 2010-06-19 22:26:36