快!!!跑馬燈及打字程式

2007-06-02 8:46 pm
我要ge跑馬燈係由右至左,淨係run一次,絕對唔係循環!!!
至於打字程式就係要一入個網就自己係度打番d字出黎~
(可以ge話,最好有得set定等幾妙先開始打字~~~)

多謝幫忙,感激不盡!!!

回答 (1)

2007-06-03 8:53 am
✔ 最佳答案
<html>
<head>
<script>
function init() {
setTimeout('autotype(0)', 2000); // Start auto-type 2 sec later after page load
}

var myText = "Hello World!"
function autotype(i) {
document.getElementById('hello ' ).innerText += myText.charAt(i);
if (i < myText.length) setTimeout('autotype(' + (++i) + ')', 200); // Type a character every 200ms
}
</script>
</head>

<body onload='init()'>
<marquee loop=1>跑馬燈</marquee>
<span id='hello '</span>
</body>

2007-06-03 00:53:57 補充:
有D符號變左亂碼, 希望你睇得明啦.

2007-06-03 23:22:50 補充:
http://www.badongo.com/file/3295363Rename the file as a.html有齊 曉停的跑馬燈 打字


收錄日期: 2021-04-13 00:34:02
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070602000051KK01662

檢視 Wayback Machine 備份