状态栏的字像打字一样出现再消失
SUGER2 发表于 - 2006-4-13 11:33:00

<body onLoad="scrollIn()">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var Message="你要的字";
var place=1;
function scrollIn() {
window.status=Message.substring(0, place);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollOut()",300);
} else {
place++;
window.setTimeout("scrollIn()",50);
}
}
function scrollOut() {
window.status=Message.substring(place, Message.length);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollIn()", 100);
} else {
place++;
window.setTimeout("scrollOut()", 50);
}
}
// End -->
</SCRIPT>

发表评论:

    大名:
    密码: (游客无须输入密码)
    主页:
    标题:
    载入中...
Powered by Oblog.