标题闪烁
<script type="text/javascript"> var titleText = "<!--{TWINKLE_TITLE}-->"; if (titleText.substring(4) === "{TWINKLE_TITLE}-->") { titleText = document.title; } function twinkleTitle(rawTitle, execCount, nextRunMillis) { if ((execCount % 2) === 0) { document.title = " "; } else { document.title = rawTitle; } setTimeout(function(){ twinkleTitle(rawTitle, ++execCount, nextRunMillis); }, nextRunMillis); } twinkleTitle(titleText, 0, 500); </script>
耐得住寂寞,守得住繁华