• 一个模仿图片透明渐变做的表格颜色渐变效果 js脚本特效


    <HTML>
    <HEAD>
    <TITLE>dancepower.cn</TITLE>
    <SCRIPT language=JavaScript>
    // Flash table Extension for Dreamwever ,by dio(diopex@sina.com)
    nereidFadeObjects = new Object();
    nereidFadeTimers = new Object();
    function nereidFade(object, destOp, rate, delta){
    if (!document.all)
    return
        if (object != "[object]"){  //do this so I can take a string too
            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);
        }
    }
    </SCRIPT>
    </HEAD>
    <BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0"
    marginwidth="0">
    <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
      <TBODY>
      <TR>
        <TD align=center>
          <TABLE borderColor=#ffffff height=100 cellSpacing=1 cellPadding=1
          width=100 align=center bgColor=#000033 border=1>
            <TBODY>
            <TR align=center>
              <TD onmouseover=nereidFade(this,100,10,5)
              style="FILTER: alpha(opacity=70)" onmouseout=nereidFade(this,50,10,5)
              bgColor=#00ccff><FONT face=verdana color=#ffffff
    size=1>dio</FONT></TD>
              <TD onmouseover=nereidFade(this,100,10,5)
              style="FILTER: alpha(opacity=70)" onmouseout=nereidFade(this,50,10,5)
              bgColor=#ff9900><FONT face=verdana color=#ffffff
            size=1>pex</FONT></TD></TR>
            <TR align=center>
              <TD onmouseover=nereidFade(this,100,10,5)
              style="FILTER: alpha(opacity=70)" onmouseout=nereidFade(this,50,10,5)
              bgColor=#ff3399><FONT face=verdana color=#ffffff
    size=1>pex</FONT></TD>
              <TD onmouseover=nereidFade(this,100,10,5)
              style="FILTER: alpha(opacity=70)" onmouseout=nereidFade(this,50,10,5)
              bgColor=#33ff66><FONT face=verdana color=#ffffff
            size=1>dio</FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>

    PS:这是从别人那里转来的,觉得很漂亮,所以拿来了,好好学习下!

  • 相关阅读:
    日本自然科学研究机构生理学研究所:研究显示古典音乐有助治疗突发性耳聋(转)
    苹果新专利:视频通话不怕掉帧(转)
    三步解决EntityFramework Code First中的MissingMethodException错误
    Unity3D去掉全屏时的屏幕黑边
    WindowsPhone-GameBoy模拟器开发六--[转]指令系统实现必读:补码
    WindowsPhone-GameBoy模拟器开发五--使用XNA初略实现Gameboy显示系统
    WindowsPhone-GameBoy模拟器开发四--Gameboy显示系统分析
    python继承初始化对象实例时 TypeError: module() takes at most 2 arguments (3 given)
    python __getattr__和__getattribute__ 区别
    python – 将列表拆分为较小的列表
  • 原文地址:https://www.cnblogs.com/butterfly/p/1422009.html
Copyright © 2020-2023  润新知