个人博客主题自定义常用工具
分类: 主题优化、站点信息 2079 2
雪花效果
<script type="text/javascript" src="https://libs.baidu.com/jquery/1.8.3/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/TRHX/CDN-for-itrhx.com@3.0.6/js/snow3.js"></script>
雪花特效
<script src="https://cdn.jsdelivr.net/gh/TRHX/CDN-for-itrhx.com@2.2.2/js/snow.js"></script>
鼠标点击 爱心 效果
<script src="https://cdn.jsdelivr.net/gh/SGYZ0910/CDN@1.0.5/js/love.js"></script>
烟花字体打字特效
<script src="https://cdn.jsdelivr.net/gh/SGYZ0910/CDN@1.0.5/js/activate-power-mode.js"></script>
<script>
POWERMODE.colorful = true; // make power mode colorful
POWERMODE.shake = false; // turn off shake
document.body.addEventListener('input', POWERMODE);
</script>
浏览器搞笑标题
<script>
var OriginTitle = document.title;
var titleTime;
document.addEventListener('visibilitychange', function () {
if (document.hidden) {
$('[rel="icon"]').attr('href', "/favicon.ico");
document.title = '╭(°A°`)╮ 404,页面崩溃啦 ~';
clearTimeout(titleTime);
}
else {
$('[rel="icon"]').attr('href', "/favicon.ico");
document.title = '(ฅ>ω<*ฅ) 欢迎回来 ~' + OriginTitle;
titleTime = setTimeout(function () {
document.title = OriginTitle;
}, 2000);
}
});
</script>
共 2 条评论关于 “个人博客主题自定义常用工具”