0
您不知道如何編寫函數,以便當您將鼠標懸停在圖片或文字上時,淡入淡出圖像。 http://jsfiddle.net/Tiimsvk/8mwh03fr/當您懸停文字時淡入圖像
<script>
function showimg1(img){
obr=document.getElementById('showingimg1');
obr.src=img;
return false;
}
</script>
<a href="#"><img src="http://lumainterier.eu/image/interier/schodiska/scale/003D.jpg" onmouseover="return showimg1('http://lumainterier.eu/image/interier/schodiska/scale/003C.jpg');" onmouseout="return showimg1('http://lumainterier.eu/image/interier/schodiska/scale/003D.jpg');" id="showingimg1"></a>
<a href="#" onmouseover="return showimg1('http://lumainterier.eu/image/interier/schodiska/scale/003C.jpg');" onmouseout="return showimg1('http://lumainterier.eu/image/interier/schodiska/scale/003D.jpg');">RODINNÉ DOMY</a>
與CSS不是JS做不褪色的照片... – vsync 2014-10-31 22:38:29