※ 忽近忽遠的文字 ※
   加入網頁步驟  
 
  1. 將以下的控制碼先複製起來。(用滑鼠將底下的一堆碼,標記起來,按滑鼠右鍵選擇【複製】就行啦!)

  2. 然後在網頁中的 </HEAD> 之後將剛剛複製的東西貼上就大功告成了  !(按滑鼠右鍵選擇【貼上】就行啦!)

  3. 最後,更改原始碼中紅色字的部份的內容就可以了!(就是紅色字的地方,改成您想要的內容即可!)

Copyright Power Information All Rights Reserved.

※忽近忽遠的文字展示區※


<script language="Javascript1.2"> 
<!--

var tags_before_clock = "<center>";
var tags_after_clock = "</center>";

var speed = 100;
var speed2 = 2000;
var biggest_text = 20;

var x = 0;
var y = 0;
var themessage, size;
var esize = "</font>";

function initArray() {

this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
}
}

var themessage2 = new initArray(
"<b>歡迎光臨動力資訊網</b>",
"<b>本站提供您完整網頁教學內容</b>",
"<b>Java applets 教學,Java script 教學</b>",
"<b>ASP 軟體下載,CGI 軟體下載</b>"
);

if(navigator.appName == "Netscape") {
document.write('<layer id="wds"></layer><br>');
}

if (navigator.appVersion.indexOf("MSIE") != -1){
document.write('<span id="wds"></span><br>');
}

function upwords(){ 

themessage = themessage2[y];

if (x < biggest_text) {
x++;
setTimeout("upwords()",speed);
}

else {
setTimeout("downwords()",speed2);
}

if(navigator.appName == "Netscape") {
size = "<font point-size='"+x+"pt'>"; 
document.wds.document.write(size+tags_before_clock+themessage
+tags_after_clock+esize);
document.wds.document.close();
}

if (navigator.appVersion.indexOf("MSIE") != -1){
wds.innerHTML = tags_before_clock+themessage+tags_after_clock;
wds.style.fontSize=x+'px'
}


function downwords(){

if (x > 1) {
x--;
setTimeout("downwords()",speed);
}

else {
setTimeout("upwords()",speed2);
y++;
if (y > themessage2.length - 1) y = 0;
}

if(navigator.appName == "Netscape") {
size = "<font point-size='"+x+"pt'>"; 
document.wds.document.write(size+tags_before_clock+themessage
+tags_after_clock+esize);
document.wds.document.close();
}

if (navigator.appVersion.indexOf("MSIE") != -1){
wds.innerHTML = tags_before_clock+themessage+tags_after_clock;
wds.style.fontSize=x+'px'
}
}

setTimeout("upwords()",speed);
//-->
</script>