131、图片循环渐显示渐暗

131、图片循环渐显示渐暗

脚本说明:

把如下代码加入<body>区域中

<script language="JavaScript">

//var d='true'

var d=0

function JM_fade(ob){

if (d==0) {ob.filters.alpha.opacity+=1} else {ob.filters.alpha.opacity-=1}

if (ob.filters.alpha.opacity==100){d=1;} else if (ob.filters.alpha.opacity==0){d=0}

}

setInterval("JM_fade(u)",10)

</script>

<IMG src="little.jpg" name="u" style="filter:alpha(opacity=0)">

 

Write a comment

Comments: 0