<!--要完成此效果把如下代码加入到<head>区域中-->
<script language="javascript">
<!-- Hide me
var index_count = 0;
var title_string = "欢迎光临网页教学网--专业教学网站";
var title_length = title_string.length;
var cmon;
var kill_length = 0;
function loopTheScroll()
{
scrollTheTitle();
if(kill_length > title_length)
{
clearTimeout(cmon);
}
kill_length++;
cmon = setTimeout("loopTheScroll();",100)
}
function scrollTheTitle()
{
var doc_title = title_string.substring((title_length - index_count - 1),title_length);
document.title = doc_title;
index_count++;
}
loopTheScroll();
//-->
</script>