让网页的title动起来

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hello,World!</title>
</head>
<body> <script type="text/javascript">
function scroll() {
var titleInfo = document.title;
var firstInfo = titleInfo.charAt(0);
var lastInfo = titleInfo.substring(1, titleInfo.length);
document.title = lastInfo + firstInfo;
}
setInterval("scroll()", 500);
</script>
</body>
</html>
上一篇:20+非常棒的Photoshop卡通设计教程


下一篇:Centos7下ELK+Redis日志分析平台的集群环境部署记录