111、非凡图片效果

111、非凡图片效果

脚本说明:

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

<script language=JavaScript>

<!-- Beginning of JavaScript Code -------------------

 

nereidFadeObjects = new Object();

nereidFadeTimers = new Object();

function nereidFade(object, destOp, rate, delta){

if (!document.all)

return

    if (object != "[object]"){ setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);

        return;

    }

    clearTimeout(nereidFadeTimers[object.sourceIndex]);

    diff = destOp-object.filters.alpha.opacity;

    direction = 1;

    if (object.filters.alpha.opacity > destOp){

        direction = -1;

    }

    delta=Math.min(direction*diff,delta);

    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){

        nereidFadeObjects[object.sourceIndex]=object;

        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);

    }

}

// -- End of JavaScript Code -->

</script>

 <table border="0" cellspacing="1" cellpadding="0" align="center">

          <tr align="center">

            <td background="sto/004.jpg" width="60" height="60"><a href="#">

                     <img

      onmouseover=nereidFade(this,100,5,7) style="FILTER: alpha(opacity=0);border:1px solid #000000"

      onmouseout=nereidFade(this,01,7,5)

      src="sto/005.jpg" width="150" height="200" border="0" alt="网页特效代码"  ></a></td>

            <td width="60" height="60" background="sto/001.jpg"><a href="http://www.7stk.com">

                     <img src="sto/006.jpg" width="150" height="200" border="0" alt="网页特效代码" onmouseover=nereidFade(this,100,5,7) style="FILTER: alpha(opacity=0);border:1px solid #000000" 

      onmouseout=nereidFade(this,01,7,5) ></a></td>

            <td width="60" height="60" background="sto/002.jpg"><a href="http://www.7stk.com">

                     <img src="sto/007.jpg" width="150" height="200" border="0" alt="网页特效代码"  onmouseover=nereidFade(this,100,5,7) style="FILTER: alpha(opacity=0);border:1px solid #000000" 

      onmouseout=nereidFade(this,01,7,5) ></a></td>

            <td width="60" height="60" background="sto/003.jpg"><a href="http://www.7stk.com">

                     <img src="sto/0011.jpg" width="150" height="200" border="0" alt="网页特效代码" onmouseover=nereidFade(this,100,5,7) style="FILTER: alpha(opacity=0);border:1px solid #000000" 

      onmouseout=nereidFade(this,01,7,5) ></a></td>

          </tr>

        </table>

 

Write a comment

Comments: 0