128、一个个出现的文字

128、一个个出现的文字

脚本说明:

把如下代码加入<body>区域中

<script language="JavaScript1.2">

 

var it=0

function initialize(){

mytext=typing.innerText

var myheight=typing.offsetHeight

typing.innerText=''

document.all.typing.style.height=myheight

document.all.typing.style.visibility="visible"

typeit()

}

function typeit(){

typing.insertAdjacentText("beforeEnd",mytext.charAt(it))

if (it<mytext.length-1){

it++

setTimeout("typeit()",100)

}

else

return

}

if (document.all)

document.body.onload=initialize

</script>

 

<small><span id="typing" style="visibility:hidden" align="left">New sites will appear in this window, which you can surf while you play. If you completed the preferences survey (by clicking on the Customize Sites button above), you will see sites covering your favorite subjects!</span></small>

 

Write a comment

Comments: 0