博主: 夏天
谷歌收录: 已收录
最后收录时间: 2024年 09月 05日 14:24
小屋采用: 《 云奚运营手册 》许可
其实很简单,直接上代码
将代码复制粘贴到 自定义输出body 尾部的HTML代码
或者 post.php 里
修改里面的关键字即可
<script>
var OriginTitile = document.title,
titleTime;
document.addEventListener("visibilitychange",
function() {
if (document.hidden) {
document.title = "网页已崩溃!";
clearTimeout(titleTime)
} else {
document.title = "(/≧▽≦/)你又回来了! " ;
titleTime = setTimeout(function() {
document.title = OriginTitile
},
2000)
}
});
</script>
—— 评论区 ——