<script> (function () { $(document).ready(function() { // 处理消息机制 (function () { var prefix = '<?php echo Typecho_Cookie::getPrefix(); ?> ', cookies = { notice : $.cookie(prefix + '__typecho_notice'), noticeType : $.cookie(prefix + '__typecho_notice_type'), highlight : $.cookie(prefix + '__typecho_notice_highlight') }, path = '<?php echo Typecho_Cookie::getPath(); ?> '; if (!!cookies.notice && 'success|notice|error'.indexOf(cookies.noticeType) >= 0) { var head = $('.typecho-head-nav'), p = $('<div class="message popup ' + cookies.noticeType + '">' + '<ul><li>' + $.parseJSON(cookies.notice).join('</li><li>') + '</li></ul></div>'), offset = 0; if (head.length > 0) { p.insertAfter(head); offset = head.outerHeight(); } else { p.prependTo(document.body); }