<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>北京欢迎你</title>
<script type="text/javascript">
function scroll() {
var title = document.title;
var lastCh = title.charAt(title.length - 1);
var leftStr = title.substring(0, title.length - 1);
document.title = lastCh + leftStr;
}
// setInterval("scroll()",500);
</script>
</head>
<body>
<input type="button" value="点击" οnclick="timeID=setInterval('scroll()',800)"/>
<input type="button" value="停止" οnclick="clearInterval(timeID)"/>
</body>
</html>