<\/a><\/p>\njs\u6587\u4ef6<\/p>\n
(function() {\r\n var btnId = '__gotop';\r\n var isIE = !!window.ActiveXObject && \/msie (\\d)\/i.test(navigator.userAgent) ? RegExp['$1'] : false;\r\n\r\n function $() {\r\n return document.getElementById(arguments[0]);\r\n }\r\n\r\n function getScrollTop() {\r\n return ('pageYOffset' in window) ? window.pageYOffset\r\n : document.compatMode === \"BackCompat\"\r\n && document.body.scrollTop\r\n || document.documentElement.scrollTop ;\r\n } \r\n\r\n function bindEvent(event, func) {\r\n if (window.addEventListener) {\r\n window.addEventListener(event, func, false);\r\n } else if (window.attachEvent) {\r\n window.attachEvent('on' + event, func);\r\n }\r\n }\r\n\r\n bindEvent('load',\r\n function() {\r\n var css = 'background-color:#999;width:50px;height:50px;position:fixed;right:100px;bottom:30px;border-radius:10px;cursor:pointer;display:none;';\r\n\r\n if (isIE && isIE < 7) {\r\n css += '_position:absolute;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-30-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)))';\r\n var style = document.createStyleSheet();\r\n style.cssText = '*html{background-image:url(about:blank);background-attachment:fixed;}';\r\n }\r\n\r\n var html = '<div style=\"height: 0;width: 0;border:14px solid #999999;border-top: 0 none;border-bottom:14px solid #fff;position: relative;margin:12px 0 0 11px;\"><div style=\"width:8px;height:7px;position:absolute;top:14px;left:-4px;background-color:#fff;overflow: hidden;\"><\/div><\/div>';\r\n var el = document.createElement('DIV');\r\n el.id = btnId;\r\n el.style.cssText = css;\r\n el.innerHTML = html;\r\n document.body.appendChild(el);\r\n\r\n el.onclick = function() {\r\n (function() {\r\n var top = getScrollTop();\r\n if (top > 0) {\r\n window.scrollTo(0, top \/ 1.2)\r\n setTimeout(arguments.callee, 10);\r\n }\r\n })();\r\n };\r\n\r\n el.onmouseover = function() {\r\n $(btnId).firstChild.style.borderBottom = '14px solid #ddd';\r\n $(btnId).firstChild.firstChild.style.backgroundColor = '#ddd';\r\n };\r\n\r\n el.onmouseout = function() {\r\n $(btnId).firstChild.style.borderBottom = '14px solid #fff';\r\n $(btnId).firstChild.firstChild.style.backgroundColor = '#fff';\r\n };\r\n }\r\n );\r\n\r\n bindEvent('scroll',\r\n function() {\r\n var top = getScrollTop(), display = 'none';\r\n\r\n if (top > 0) {\r\n display = 'block';\r\n }\r\n\r\n if ($(btnId)) $(btnId).style.display = display;\r\n });\r\n})();<\/code><\/pre>\nhtml<\/p>\n
<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\r\n <head>\r\n <meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/>\r\n <title>\u8fd4\u56de\u9876\u90e8\u6309\u94ae<\/title>\r\n <meta name=\"keywords\" content=\"\"\/>\r\n <meta name=\"Description\" content=\"\"\/>\r\n \r\n <script type=\"text\/javascript\" src=\"abc.js\"><\/script>\r\n <\/head>\r\n <body style=\"height:2000px;\">\r\n <\/body>\r\n<\/html><\/code><\/pre>\n <\/p>\n","protected":false},"excerpt":{"rendered":"
\u8fd4\u56de\u9876\u90e8\u7b80\u6613\u4ee3\u7801 \u6211\u4eec\u5728\u505a\u7f51\u7ad9\u7684\u65f6\u95f4\uff0c\u7ecf\u5e38\u4f1a\u9047\u5230\u8fd4\u56de\u9876\u90e8\u7684\u6548\u679c\uff0c\u9f20\u6807\u6eda\u52a8\u4e00\u5b9a\u9ad8\u5ea6\u4e4b\u540e\uff0c\u4f1a\u51fa\u73b0\u201c\u8fd4\u56de\u9876\u90e8\u201d\u7684\u6807\u7b7e […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1127,1126],"class_list":["post-3388","post","type-post","status-publish","format-standard","hentry","category-web","tag-1127","tag-1126"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/3388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=3388"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/3388\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=3388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=3388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=3388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}