forked from waylau/html-css-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NoticeDemo3.html
46 lines (46 loc) · 1.25 KB
/
NoticeDemo3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>广告文字</title>
</head>
<body bgcolor="#fef4d9" onLoad="play_rt()">
<SCRIPT LANGUAGE="JavaScript">
m = new Array()
m[0] = "这个例子还不错吧!"
m[1] = "你喜欢吗?"
m[2] = "这个可以放在公告栏中使用的!"
m[3]="我喜欢这种效果!"
m[4]="本站站名:源码爱好者"
m[5] = "请多提意见!"
m[6] = "如有问题!欢迎留言!"
m[7] = "欢迎你的再次光临!"
bagcolor = new Array()
bagcolor[0] = "#CCCCCC"
bagcolor[1] = "#FFFF66"
bagcolor[2] = "#CCFFFF"
bagcolor[3] = "#AAEEFF"
bagcolor[4] = "#CCFF88"
bagcolor[5] = "#FF9933"
bagcolor[6] = "#99AAFF"
bagcolor[7] = "#6699FF"
var i=0;
function Ran(R) {
return Math.floor((R+1)*Math.random())
}
function play_rt()
{
rt1.style.filter="revealTrans(Duration=1.5,Transition=" + Ran(22) + ")";
rt1.filters.revealTrans.apply();
rt1.style.background=bagcolor[Ran(7)];
rt1.innerHTML=m[Ran(6)];
rt1.filters.revealTrans.play();
timer = setTimeout("play_rt()",3000)
}
</SCRIPT>
<TABLE WIDTH="358" BORDER="1" HEIGHT="70">
<TR ALIGN="CENTER">
<TD id="rt1" HEIGHT="82"></TD>
</TR>
</TABLE>
</body>
</html>