网页制作,逐字显示,自动

来源:百度知道 编辑:UC知道 时间:2024/09/18 03:34:35

查看源文件,把他的<SCRIPT>那段代码拷过来就行了

在<head></head>之间加:
<script language="javascript">
<!--
var count=0
function play(){
msg=whattext.innerText
comp=msg.length
type()
}
function type(){
if(count<=comp){
whattext.innerText=msg.substring(0,count)
count++
setTimeout("type()",100)}
else{
count=0
play()
}}
//-->
</script>
在<body>标记内加:<body onload="play()">
就可以了