微信扫一扫 分享朋友圈

已有 1509 人浏览分享

给表格单元格加上七色彩条_层和布局特效

[复制链接]
1509 0
<html>
<head>
<meta http-equiv="Content-Type" mrc="text/html; charset=gb2312">
<title>单元格实现的七色彩条</title>
</head>
<body>
<script>
l=Array(6,7,8,9,'a','b','b','c','d','e','f')
t="<table height=5 width=100% cellspacing=0 cellpadding=0><tr>"
for(x=0;x<40;x++){t+="<td id=a_mo"+x+"></td>"}
document.write(t+"</tr></table>")
function f1(y){for(i=0;i<40;i++){c=(i+y)%20;if(c>10)c=20-c
document.all["a_mo"+(i)].bgColor="'#00"+l[c]+l[c]+"00'"}y++
setTimeout('f1('+y+')',1)}f1(1)
</script>
</body>
</html>


帖子地址: 

举报 使用道具

回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

0

关注

0

粉丝

321

主题
精彩推荐
热门资讯
网友晒图
图文推荐
  • 微信公众平台

  • 扫描访问手机版

QQ|Archiver|手机版|小黑屋|熙海啵啵 ( 滇ICP备2020008601号|滇公网安备53011202001450 )|友链申请|滇ICP备2020008601号

GMT+8, 2025-7-4 00:45 , Processed in 0.158505 second(s), 36 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.