工具列篇

1.左右移動
2.慢慢向左移

1.左右移動

<!--- [Start] code provided by kkx3.com --->
<script language="Javascript">
var x = 0
var speed = 100
var text = "字句"
var course = 127
var text2 = text
function Scrollforward() {
window.status = text2.substring(0, text2.length)
if (course < text2.length) {
setTimeout("Scrollback()", speed)
}else {text2 = " " + text2
setTimeout("Scrollforward()", speed);
}}function Scrollback() {
window.status = text2.substring(x, text2.length)
if (text2.length - x == text.length) {text2 = text
x = 0
setTimeout("Scrollforward()", speed);}else {x++
setTimeout("Scrollback()", speed);}}Scrollforward()
</script>
<!--- [End] code provided by kkx3.com --->

var speed = 100 係速度。

放係Input your own Header HTML

回到最上


2.慢慢向左移

<!--- [Start] code provided by kkx3.com --->
<SCRIPT Language="JavaScript">
msg = "plz dun copy anythings";
timeID = 20;stcnt = 26;wmsg = new Array(63);wmsg[0]=msg;blnk = " ";for (i=1; i<62; i++){b = blnk.substring(0,i);wmsg[i]="";for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b;}function wiper(){if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];if (stcnt-- < -10) stcnt=11;status = str;clearTimeout(timeID);timeID = setTimeout("wiper()",100);}wiper()
</SCRIPT>
<!--- [End] code provided by kkx3.com --->

stcnt-- < -10)
-10 係字既速度、數字愈大,移既速度愈慢
放係Input your own Header HTML

回到最上


聯絡我們
如有錯漏,歡迎來信賜教

E-mail : kkx3@kkx3.com 標題請註明 Xanga教室