有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>
<!-- http://www.webjx.com/ -->
<!-- http://bbs.webjx.com/ -->
<!-- 完整的HTML代码如下: -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页教学网-特效代码->>滚动标题</title>
<script language="javascript">
<!-- Hide me
var index_count = 0;
var title_string = "让标题栏文字动起来,标题也动了,===让标题栏文字动起来,标题也动了-->webjx.com";
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>
</head>
<body>
</body>
</html>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]