<SCRIPT LANGUAGE=JAVASCRIPT>
<!--
var msg = "让我们做得更好--网页教学网!";
var speed = 300;
var msgud = " " + msg;
function titleScroll() {
if (msgud.length msgud = msgud.substring(1, msgud.length);
document.title = msgud.substring(0, msg.length);
window.setTimeout("titleScroll()", speed);
}
-->
</SCRIPT>
将你Html文件的<body>改为如下:
<BODY onload="window.setTimeout('titleScroll()', 500)">
注:如果您象我一样把它放在窗口中,请将document.title改为parent.document.title