图象淡入淡出Script

来源:本站整理  作者:NC_Editor
摘要:!Two steps to installing this script!1) Copy everything below, and paste in HEAD section of pagescript language=……

<!--Two steps to installing this script-->

<!--1) Copy everything below, and paste in HEAD section of page-->

<script language="JavaScript1.2">

/*

Fading Image Script-

?Dynamic Drive (www.jojoo.net)

For full source code, installation instructions,

100's more DHTML scripts, and Terms Of

Use, visit dynamicdrive.com

*/

function makevisible(cur,which){

if (which==0)

cur.filters.alpha.opacity=100

else

cur.filters.alpha.opacity=20

}

</script>

<!--2) Add the below to your IMG tags. For example:-->

<a href="whatever.htm"><img src="http://www.jojoo.net/logo.gif" border=0 onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a>

【相关文章】好搜一下
兼容标准XHTML的浮动层特效实现

兼容标准XHTML的浮动层特效实现

1. 浮动层的显示、移动一个简单的例子:div id="mydiv" style…