你好,我有一個由div標籤組成的菜單。用戶選擇每個菜單項的圖像和鼠標懸停在菜單上時應用的一個附加圖像(懸停狀態)。在mouseover和mouseout上閃爍的圖像
問題是,在鼠標和鼠標上圖像閃爍,用戶體驗不理想。
請記住,用戶上傳每個菜單項1的照片默認爲1,懸停狀態爲1。
我該如何擺脫閃爍?
菜單項的html:
<div class="help-context-box" style="background: url(http://domain.com/c/document_library/get_file?uuid=db77cbf4-6ae8-42ec-bb07-36cbde8ab82a&groupId=10180) no-repeat left top;" onmouseover="this.style.background=' url(/c/document_library/get_file?uuid=bd77adc5-54c7-42c8-b39d-f07f1d611ac0&groupId=10180) no-repeat left top'" onmouseout="this.style.background=' url(/c/document_library/get_file?uuid=db77cbf4-6ae8-42ec-bb07-36cbde8ab82a&groupId=10180) no-repeat left top'"></div>
哪裏是你的'JavaScript'代碼? – Pavlo
標籤上沒有額外的js代碼 – Syd