📄 9-6.htm
字号:
<html>
<head>
<title>§9.6 变幻的彩色文字</title>
<style>
.F1 {filter: glow(Color=#FF8000,Strength=10);
width=200px;
height=200px;}
.F2 {filter: glow(Color=#00FF00,Strength=9);
width=150px;
height=200px;}
.F3 {filter: glow(Color=#0080FF,Strength=12);
width=100px;
height=200px;}
</style>
<script>
var rate = 500
var i = 0
var F = 'F1'
function doThing(){
if (document.getElementById&&document.all) {
ok = true
i++;
if (i==1) F = 'F1'
if (i==2) F = 'F2'
if (i==3) F = 'F3'
myfont.className=F
if (i > 2) i = 0
timer=setTimeout('doThing()', rate)
}
}
</script>
</head>
<body bgcolor="#000000" onload="doThing()">
<table width="200" cellspacing="0" cellpadding="10">
<tr>
<td>
<center>
<font face="Courier" size="5" color="#FFFFFF">
<p id="myfont">
<b>欢迎光临我的主页!</b>
</p>
</font>
</center>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -