126、大段文字一个个出现

126、大段文字一个个出现

脚本说明:

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

<script>

<!--

newAuto = new Array();

newAuto[0]=" ==中国队还有两天就要迎战十强赛的第一个对手阿联酋队了,按照沈阳组委会的计划,822,是球迷换票的最后一天,但是因为出票的机器突然瘫痪,直到昨天傍晚记者截稿时止,还有几千张球票没有发到球迷的手中。五里河体育场东门外的球迷换票处失去了往日的宁静,换之以已经等不及的球迷混成一团的喧嚣声和叫骂声==! "

newAuto[1]="抚顺来的球迷老张怎么也没有想到,自己求爷爷告奶奶好不容易买到了十强赛的门票,但是在领票的时候却发现换票比求人买票还要费劲,他已经带着干粮在五里河体育场东门外等了将近三天了。与不幸的老张一样的球迷还有许多,他们每天早上九点准时来到五里河,下午六、七点才离开,与票务组人员上下班的时间一样。但票务组的工作人员总是以十分抱歉的口吻告诉球迷第二天再来。许多球迷抱怨说,他们本人都有繁忙的工作,为了到现场观看国家队的比赛,拿出自己的工资购买了十强赛的套票。得知组委会的换票通知后,在各自的单位都是请假来五里河取票。没想到,一等就是三天,既耽误了正常的工作,又额外增加了一笔意想不到的开销。虽然,售票人员的态度很好,但是,光是态度好,不解决实际问题是没有意义的。来自<a href=\"http://www.k688.com\">建站资源</a>"

topOffset="50";

leftOffset="10";

Width="750";

Align="left";

fontSize="2";

fontFace="Verdana";

fontColor="black";

typingSpeed=1;

pause=2000;

 

// Do NOT edit below this line.

if (document.getElementById)

document.write('<DIV ID="animText" STYLE="position:absolute;width:'+Width+'px;top:'+topOffset+';left:'+leftOffset+';" ALIGN="'+Align+'"></DIV>')

else

document.write('<LAYER NAME="animText" WIDTH="'+Width+'" TOP="'+topOffset+'" LEFT="'+leftOffset+'"></LAYER>')

aat1=-1;

aat2=0;

aat3=0;

t3=""

function autoanimText(number, which) {

text=newAuto[number]

thenum=number

if (which=="begin") {

if (aat1<text.length) {

aat1++;

t1=text.substring(aat1, aat1+1)

if (t1=="<") {

aat3+=1

t2=text.indexOf(">",aat3);

t3=text.substring(aat1,t2+1)

if (t3.length==4) {t3=""}

aat3=t2+1

aat1=aat3}

begin='<DIV ALIGN="'+Align+'"><FONT SIZE="'+fontSize+'" FACE="'+fontFace+'" COLOR="'+fontColor+'">'

text2=text.substring(0, aat1+1);

if (t3>"") {

t5=t3.indexOf(' ',0)

t4=t3.substring(1,t5)

text2+="</"+t4+">"}

if (document.getElementById) {

document.getElementById("animText").innerHTML=begin+text2+'</FONT></DIV>'}

if (document.layers) {

document.layers["animText"].document.write(begin+text2+'</FONT></DIV>');

document.layers["animText"].document.close();}

autoanimateText = setTimeout('autoanimText(thenum, "begin")', typingSpeed);}

else {aat1=-1;aat3=-1;clearInterval(autoanimateText);setTimeout('autoanimText(thenum, "end")', pause);}}

else if (which=="end") {

if (aat1<text.length) {

aat1++;

t1=text.substring(aat1, aat1+1)

if (t1=="<") {

aat3+=1

t2=text.indexOf(">",aat3);

t3=text.substring(aat1,t2+1)

if (t3.length==4) {t3=""}

aat3=t2+1

aat1=aat3}

begin='<DIV ALIGN="'+Align+'"><FONT SIZE="'+fontSize+'" FACE="'+fontFace+'" COLOR="'+fontColor+'"><SPAN STYLE="position:relative;visibility:hidden">'

text2=text.substring(0, aat1)

text3=text.substring(aat1, text.length);

if (t3>"") {

t5=t3.indexOf(' ',0)

t4=t3.substring(1,t5)

text2+="</"+t4+">"}

if (document.getElementById) {

document.getElementById("animText").innerHTML=begin+text2+'</SPAN>'+t3+text3+'</FONT></DIV>'}

if (document.layers) {

document.layers["animText"].document.write(begin+text2+'</SPAN>'+t3+text3+'</FONT></DIV>');

document.layers["animText"].document.close();}

autoanimateText = setTimeout('autoanimText(thenum, "end")', (typingSpeed/2));

}

else {aat1=-1;aat3=0;aat2++;clearInterval(autoanimateText);setTimeout('autoanimText((aat2)%newAuto.length, "begin")', 50);}}}

function startAAT3() {

if (document.getElementById) {

document.getElementById("animText").innerHTML='<SPAN STYLE="position:relative;visibility:hidden">'+newAuto[0]+'</SPAN>'}

if (document.layers) {

document.layers["animText"].document

.write('<SPAN STYLE="position:relative;visibility:hidden">'+newAuto[0]+'</SPAN>');

document.layers["animText"].document.close();}

autoanimText(0,'begin')}

window.onload=startAAT3

//-->

</script>

 

Write a comment

Comments: 0