如何在网页中实现打字效果?

来源:百度知道 编辑:UC知道 时间:2024/09/28 07:38:05
要参加比赛
做了个"网站"
现在补个引导页

想把这个页面的文字换成打字效果的
但是在网上找了好多代码
都不知道怎么弄

望高手帮助
会另外加分的..

我的Q:125029980

补充下:文字大约100多个
10多行那样

第一步:把如下代码加入<head>区域中

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var max=0;
function textlist() {
max=textlist.arguments.length;
for (i=0; i<max; i++)
this[i]=textlist.arguments[i];
}
tl = new textlist(
"◇◆◇网客联盟◇◆◇--不在乎",
"您好!尊敬的管理员,
您的网站存在严重漏洞~~ 。",
"请您及时修补.
检测组织:网客联盟。",
"检测成员:不在乎 QQ:84710657,",
"本次入侵纯属偶然!资料没有任何删除、改动。"
);
var x = 0; pos = 0;
var l = tl[0].length;
function textticker() {
document.tickform.tickfield.value = tl[x].substring(0, pos) + "_";
if(pos++ == l) {
pos = 0;
setTimeout("textticker()", 2000);
if(++x == max) x = 0;
l = tl[x].length;
} else
setTimeout("textticker()", 50);
}
// End --></script></head>

第二步:把如下代码加入<body>区域中

<form name=tickform>
<textar