8、文字从中间扩散出现

8、文字从中间扩散出现

<SCRIPT LANGUAGE="JavaScript">

<!-- hide script from old browsers

var phrase = "本站真诚欢迎你的光临,请多提意见!!!记得要经常光临,谢谢!! ";

var lenPhrase = phrase.length;

var phraseOut = "";

var pause = 100;

var i=0;

var j=0;

function explode() {

    i++;

    phraseOut = "";

    for (j=1; j<=(lenPhrase/2)-i; j++) {

      phraseOut += "  ";

    }

    for (j=1; j<=i; j++) {

      phraseOut += phrase.charAt(j-1);

    }

    for (j=i; j>=1; j--) {

      phraseOut += phrase.charAt(lenPhrase-j);

    }

    for (j=1; j<=(lenPhrase/2)-i; j++) {

      phraseOut += "  ";

    }

    window.status = phraseOut;

    if (i<lenPhrase/2) {

        setTimeout("explode()",pause);

    }

}

// end hiding contents -->

</SCRIPT>

</head>

 

<body OnLoad="explode()">

<br>

<br>

<center><font color=red face="隶书" size=6>文字从前后出现</font></center>

<br>

<center>

<table border=5 bordercolor=blue borderlight=green>

<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>状态栏为效果显示区!</strong></font></td></tr>

</table></center>

<br>

<br>

<center>

 <SCRIPT LANGUAGE="JavaScript">

 

<!-- hide

 

function goHist(a)

 

{

 

   history.go(a);

 

}

 

//-->

 

</script>

 

Write a comment

Comments: 0