<title>欢迎接入持续集成</title>
<script type="text/javascript">
var randnum=new Date().getTime();
var str = ["", "", "", "欢", "迎", "接", "入", "持", "续", "集", "成", " ", " "];
var len = str.length;
var index = 0;
function rollTitle()
{
var title = "";
if(index == len){
index = 0;
}else{
index ++;
}
for(var i = 0; i < len; ++i){
var j = i + index;
if(j >= len){
title += str[j - len];
}else{
title += str[j];
}
}
document.getElementsByTagName("title")[0].innerText=title;
setTimeout(rollTitle,500);
}
(function(){
setTimeout(rollTitle,500);
}());
转载于:https://my.oschina.net/sanpeterguo/blog/206441