开发者设置的自定义输出body 尾部的HTML代码
**
<script>
var OriginTitle = document.title;
var titleTime;
document.addEventListener('visibilitychange', function () {
if (document.hidden) {
$('[rel="icon"]').attr('href', "http://wxpow.com/sd.ico");
document.title = '后台摸鱼中';
clearTimeout(titleTime);
}
else {
$('[rel="icon"]').attr('href', "http://wxpow.com/sd.ico");
document.title = '闪电' + OriginTitle;
titleTime = setTimeout(function () {
document.title = OriginTitle;
}, 2000);
}
});
</script>