body背景色渐隐渐出
来源:互联网 发布:淘宝一元秒杀网 编辑:程序博客网 时间:2024/04/28 01:00
<html>
<head>
</head>
<body onload="fadeIn(5)">
<script>
var Color=new Array("#00ff00","#00ee00","#bb00ee","#22dd00","#88dd99","#99bb99");
function fadeIn(n)
{
if(n>=1)
{
document.bgColor=Color[n];
n-=1;
setTimeout("fadeIn("+n+")",500);
}else
{
setTimeout("fadeOut(1)",500);
};
};
function fadeOut(n)
{
if(n<=(Color.length-1))
{
document.bgColor=Color[n];
n+=1;
setTimeout("fadeOut("+n+")",500);
}else
{
setTimeout("fadeIn("+(Color.length-1)+")",500);
};
};
</script>
</body>
</html>
<head>
</head>
<body onload="fadeIn(5)">
<script>
var Color=new Array("#00ff00","#00ee00","#bb00ee","#22dd00","#88dd99","#99bb99");
function fadeIn(n)
{
if(n>=1)
{
document.bgColor=Color[n];
n-=1;
setTimeout("fadeIn("+n+")",500);
}else
{
setTimeout("fadeOut(1)",500);
};
};
function fadeOut(n)
{
if(n<=(Color.length-1))
{
document.bgColor=Color[n];
n+=1;
setTimeout("fadeOut("+n+")",500);
}else
{
setTimeout("fadeIn("+(Color.length-1)+")",500);
};
};
</script>
</body>
</html>
0 0
- body背景色渐隐渐出
- body元素的背景色
- body背景色&body余白
- html,body设置背景色透明
- Unity3D Logo 渐隐渐出
- webkit 设置body背景色为透明的方法
- body css样式中 设置宽度和背景色
- body和html到底有多高&&浏览器的背景色问题
- 弹窗渐隐渐出效果
- 背景色
- 背景色
- iframe元素內嵌頁面如何去掉继承的html及body背景色/背景图片
- jq show() hide()渐出渐隐
- RecyclerView自定义动画,item飞入,渐隐渐出
- c# .net winform 实现渐隐渐出的效果
- 设置标题栏背景色,背景色是自定义背景色
- 前景色与背景色
- 不打印背景色,想打印出表格的线的TABLE设置
- oracle Solaris Studio 12.3 IDE 环境下调试
- 工作记录--makefile报错:makefile:2: *** missing separator. Stop.
- JS乘法口诀表(一行代码)
- sql server 按时间段查询
- VC++ 链表控件的使用
- body背景色渐隐渐出
- poj 2586 Y2K Accounting Bug
- 5种让你入门免费学习编程的方法
- 赵本山儿子的最新相关信息
- js创建数组的写法
- HDU 1425 sort 题解
- 金融“小时代”与青岛港骗贷
- 亲测可用的NS2对"1. AODV" "2. DSDV" "3. DSR" 的路由模拟
- Oracle 存储图片