45IT.COM- 电脑学习从此开始!
DIY硬件教程攒机经验装机配置
设计Photoshop网页设计特效
系统注册表DOS系统命令其它
存储主板显卡外设键鼠内存
维修显卡CPU内存打印机
WinXPVistaWin7unix/linux
CPU光驱电源/散热显示器其它
修技主板硬盘键鼠显示器光驱
办公ExcelWordPowerPointWPS
编程数据库CSS脚本PHP
网络局域网QQ服务器
软件网络系统图像安全
页面导航: 首页 > 设计学院 > 网页特效 >

表格颜色渐变效果

电脑软硬件应用网 45IT.COM 时间:2014-02-20 15:17 作者:佚名

非常棒的效果,视觉感观效果很酷!

效果图:

表格颜色渐变效果
代码如下:

<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=middle>
      <TABLE borderColor=#ffffff height=100 cellSpacing=1 cellPadding=1
      width=100 align=center bgColor=#000033 border=1>
        <TBODY>
        <TR align=middle>
          <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=middle>
          <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>
<p>查找更多代码,请访问:<a href="http://www.45it.com/wytx/" target="_blank">45IT网</a></p>
</BODY></HTML>
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
无法在这个位置找到: baidushare.htm
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:点击我更换图片
推荐知识