{"id":411,"date":"2009-05-23T11:32:00","date_gmt":"2009-05-23T03:32:00","guid":{"rendered":""},"modified":"2013-11-27T20:40:35","modified_gmt":"2013-11-27T12:40:35","slug":"%e7%bd%91%e9%a1%b5%e6%8a%95%e7%a5%a8%e7%a8%8b%e5%ba%8f%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/411.html","title":{"rendered":"\u7f51\u9875\u6295\u7968\u7a0b\u5e8f\u811a\u672c"},"content":{"rendered":"<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n&lt;script&gt;\r\nfunction vote(n) {\r\nvar date = new Date(&quot;May 13,2009 12:00&quot;) \u2013 new Date();\r\nif(date&gt;0){\r\n   alert(&quot;\u6295\u7968\u7cfb\u7edf\u57282009\/5\/19 12:00:00\u5f00\u542f&quot;)\r\n   return;\r\n}\r\nvar d = &quot;&lt;div style=\u2019text-align:center\u2019&gt;&quot;\r\nd += &quot;&lt;div id=\u2019checkimg\u2019 style=\u2019background:url(inc\/checkCode.asp) no-repeat;cursor:pointer;width:40px;height:10px;\u2019\/ onclick=\\&quot;this.style.backgroundImage=\u2019url(inc\/checkCode.asp)\u2019\\&quot;&gt;\u3000&lt;\/div&gt;&quot;;\r\nd += &quot;&lt;br \/&gt;&quot;;\r\nd += &quot;\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801:&lt;input name=\u2019checkcode\u2019 id=\u2019checkcode\u2019 \/&gt;&lt;input type=\u2019button\u2019 value=\u2019\u63d0\u4ea4\u2019 onclick=\u2019sendVote(&quot; + n + &quot;)\u2019\/&gt;&quot;;\r\nd += &quot;&lt;\/div&gt;&quot;\r\nvar s = new fullScreenWindow(200,100,d);\r\n}\r\nfunction sendVote(n) {\r\nvar xhr = new Ajax();\r\nxhr.open(&quot;POST&quot;,&quot;vote.asp&quot;,true);\r\n\/\/xhr.setRequestHeader(\u2018Referer:\u2019, \u2018http:\/\/whzx5byb.blogcn.com\/\u2019);\r\nxhr.setRequestHeader(\u2018Content-Type\u2019, \u2018application\/x-www-form-urlencoded\u2019);\r\nxhr.setRequestHeader(\u2018Hostname\u2019,'http:\/\/221.212.47.1\/\u2019);\r\nvar c = document.getElementById(&quot;checkcode&quot;).value;\r\nvar query = &quot;id=&quot; + n + &quot;&amp;checkCode=&quot; + c;\r\nxhr.send(query);\r\n\r\nxhr.onreadystatechange = function(){\r\n   if (xhr.readyState == 4)\r\n   {\r\n\r\n    if (xhr.status == 200)\r\n    {\r\n\r\n     alert(xhr.responseText);\r\n     window.location.href = self.location;\r\n    }\r\n   }\r\n};\r\n}\r\n&lt;\/script&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&lt;script&gt; function vote(n) { var date = new Date(&#038; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":5282,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/411\/revisions\/5282"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}