27、鼠标移图像清晰显示

27、鼠标移图像清晰显示

共两步:

1.<head></head>中加入

<script language="JavaScript1.2">

function makevisible(cur,which){

if (which==0)

cur.filters.alpha.opacity=100

else

 

cur.filters.alpha.opacity=20

 

}

 

</script>

 

2.<body></body>中加入

<a href="http://7stk.com"><img src="images/1.jpg" border=0 style="filter:alpha(opacity=20)" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a>

 

 

Write a comment

Comments: 0