※ 消失的文字 ※
|
<script language="JavaScript1.2"> text="歡迎光臨動力資訊網" var fontsize=20 var color="#003300" var align="left" var Wspeed=100 var font='Arial Black,Arial,Helvetica' var timetowait=1000 /*You can remove this if you don't wan't it to start right away. You can have it start if someone clicks a link (make a link like this: <a href="#" onclick="writeInit()">Click to writetext</a>)*/ onload=writeInit; var ie, n; if (document.all) { n=0; ie=1 writeText='document.all.divZoom.innerHTML=\'<p align=\"\'+align+\'\" style=\"font-family:\'+font+\'; font-size:\'+fontsize+\'px; color:\'+color+\'">\'+text+\'</p>\'' closeIt="" } if (document.layers) { n=1;ie=0 writeText="document.divZoom.document.write('<p align=\"'+align+'\" style=\"font-family:'+font+'; font-size:'+fontsize+'px; color:'+color+'\">'+text+'</p>')" closeIt="document.divZoom.document.close()" } function writeIt(){ if(text.length>0){ text=text.slice(0,text.length-1) eval(writeText) eval(closeIt) setTimeout("writeIt()",Wspeed) } } function writeInit(){ eval(writeText) eval(closeIt) if(ie || n) setTimeout("writeIt(0)",timetowait) } function playAgain(){ text="歡迎光臨動力資訊網" writeInit() } </script> <body text="#000000" background="jpg/01_bkg1.jpg"> <center> </center> <div id="divZoom" style="position: absolute; top: 170; left: 160; width: 531; height: 21"> </div> <p align="center"><a href="#" onclick="playAgain()">【再看一次】</a></p> |