发布网友 发布时间:2022-04-23 00:00
共1个回答
热心网友 时间:2022-07-19 05:44
<head>
<title>文字幻灯切换</title>
<style type="text/css">
.trans
body{
font-size:28pt; //此处改写数字改变字体大小
}
</style>
</head>
<body>
<font color="red" size="6">
<script language="JavaScript">
Text = new Array(
"<a href='/' class='cr4'><font color=red>修改字体的大小与颜色!</font></a>",
"<a href='/' class='cr4'><font color=yellow>修改字体的大小与颜色。</font></a>",
"<a href='/' target='_blank' class='cr4'><font color=green>修改字体的大小与颜色</font></a>" //此处添加所示代码
)
var IDX= -1;
function playAd() {
if (IDX==Text.length-1) {
IDX=0;
} else {
IDX++;
}
var prefix = "";
divText.filters[0].apply();
divText.innerHTML = prefix + Text[IDX];
divText.filters[0].play();
to = setTimeout("playAd()",6000);
}
</script>
<table width=453 border=0 cellspacing=3 cellpadding=0>
<tr>
<td height=24 id=divText class=trans></td>
</tr>
<script>playAd()</script>
</table>
</font>
</body>
</html>
字体颜色代码查询