?? 7.10 狀態欄信息顯示滾動_.htm
字號:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>標題頁</title>
<SCRIPT LANGUAGE="JavaScript">
var Message="歡迎購買JavaScript實例大全,希望您能繼續支持!";
var place=1;
//文字顯示的方法
function scrollIn()
{
//從第一個文字開始在狀態欄顯示
window.status=Message.substring(0, place);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollOut()",300); //間隔300毫秒,循環收回文字
} else {
place++;
window.setTimeout("scrollIn()",50); //間隔50毫秒,循環顯示文字
}
}
//文字收回的方法
function scrollOut()
{
window.status=Message.substring(place, Message.length);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollIn()", 100);//間隔100毫秒,循環顯示文字
} else {
place++;
window.setTimeout("scrollOut()", 50);//間隔50毫秒,循環收回文字
}
}
</SCRIPT>
</head>
<body bgcolor="#eaf4d9" onLoad="scrollIn()">
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -