?? 7.10 狀態(tài)欄文字來(lái)回出現(xiàn).htm
字號(hào):
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>標(biāo)題頁(yè)</title>
<SCRIPT LANGUAGE="JavaScript">
var Message="歡迎購(gòu)買(mǎi)JavaScript實(shí)例大全,希望您能繼續(xù)支持!";
var place=1;
//文字顯示的方法
function scrollIn()
{
//從第一個(gè)文字開(kāi)始在狀態(tài)欄顯示
window.status=Message.substring(0, place);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollOut()",300); //間隔300毫秒,循環(huán)收回文字
} else {
place++;
window.setTimeout("scrollIn()",50); //間隔50毫秒,循環(huán)顯示文字
}
}
//文字收回的方法
function scrollOut()
{
window.status=Message.substring(place, Message.length);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollIn()", 100);//間隔100毫秒,循環(huán)顯示文字
} else {
place++;
window.setTimeout("scrollOut()", 50);//間隔50毫秒,循環(huán)收回文字
}
}
</SCRIPT>
</head>
<body bgcolor="#eaf4d9" onLoad="scrollIn()">
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -