window.onload=rolloverInit;function rolloverInit(){ for(var i=0;i<document.images.length;i++){ if(document.images[i].parentNode.tagName=="A"){ setupRollover(document.images[i]); } }} function setupRollover(thisImage){ thisImage.outImage=new Image(); thisImage.outImage.src=thisImage.src; thisImage.onmouseout=function(){ this.src=this.outImage.src; }? ? ? ? ? ? ?thisImage.overImage=new Image(); thisImage.overImage.src="images/"+thisImage.id+".gif"; thisImage.onmouseover=function(){ this.src=this.overImage.src; } }點圖片的時候就直接跳到鏈接了,沒有翻轉效果,求解答
以下是我寫的翻轉器的JS,希望路過的能幫忙看看哪里錯了
慕粉4240002
2016-12-13 10:41:50