编程
您现在的位置:首页 >> 编程

鼠标放图片上改变透明度

<html>

<head>

<title>鼠标放图片上改变透明度</title>

</head>

<BODY bgColor=#000000>

<p align="center">

<SCRIPT language=JavaScript>

<!--

function high(which2){

theobject=which2

highlighting=setInterval("highlightit(theobject)",100)}

function low(which2){clearInterval(highlighting)

which2.filters.alpha.opacity=30}

function highlightit(cur2){

if (cur2.filters.alpha.opacity<200)

cur2.filters.alpha.opacity+=20

else if (window.highlighting)

clearInterval(highlighting)}

//--></SCRIPT>

<IMG align=middle alt="come here" border=0 onmouseout=low(this) onmouseover=high(this) src="tool/ExamplePic/example9.jpg" style="border:1px solid #FFFFFF; FILTER: alpha(opacity=30)">

</body>

</html>