我試圖改變鼠標懸停時按鈕的背景圖像。在Firefox中的圖像交換
的發言
function testIn()
{
elem.style.backgroundImage = 'url("image_name_in.png")';
}
function testOut()
{
elem.style.backgroundImage = 'url("image_name_out.png")';
}
我與onMouseOver=testIn()
和onMouseOut=testOut()
這樣做。
這裏的問題是,當我懸停鼠標。我看到進度條(右下側)在Firefox中顯示爲,如果一些網頁獲得加載
這工作!我刪除了JavaScript例程。我在做一個假設,我們必須手動更改圖像,只要我們做mousein,mouseout。但CSS屬性懸停照顧了一切。謝謝您的幫助。 – progster 2011-02-07 19:51:44