{"id":343,"date":"2009-01-08T09:59:11","date_gmt":"2009-01-08T01:59:11","guid":{"rendered":""},"modified":"2014-02-27T23:06:04","modified_gmt":"2014-02-27T15:06:04","slug":"js-%e7%82%b9%e5%87%bb%e6%98%be%e7%a4%batab%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2009\/01\/08\/343.htm","title":{"rendered":"js \u70b9\u51fb\u663e\u793atab\u4ee3\u7801"},"content":{"rendered":"<p>&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=gb2312&quot; \/&gt;<br \/>\n&lt;title&gt;\u65e0\u6807\u9898\u6587\u6863&lt;\/title&gt;<br \/>\n&lt;script language=&quot;JavaScript&quot; type=&quot;text\/javascript&quot;&gt;<br \/>\n&lt;!&#8211;<br \/>\nif(screen.width&lt;1000) location.href = &quot;indexz.htm&quot;;<br \/>\ncook=g_cookie(&#8216;skin&#8217;);if(cook) em(&#8216;skinc&#8217;).href=&quot;css\/css_&quot;+cook+&quot;.css&quot;<br \/>\nvar tab_now = 1;<br \/>\nvar dm;<br \/>\ndm=location.xiaoyebailong.com.split(&#8216;.&#8217;)<br \/>\nif(dm[dm.length-1]) dm=dm[dm.length-2]+&#8217;.&#8217;+dm[dm.length-1]<br \/>\nelse dm=dm[dm.length-3]+&#8217;.&#8217;+dm[dm.length-2]<br \/>\nfunction s(a){<\/p>\n<p>\nif(a!=tab_now) {<br \/>\n&nbsp;&nbsp; em(&#8216;tl_&#8217;+a).className=&#8217;selectd&#8217;;<br \/>\n&nbsp;&nbsp; em(&#8216;tl_&#8217;+tab_now).className=&#8217;noselectd&#8217;;<br \/>\n&nbsp;&nbsp; if(a==1) {<br \/>\n&nbsp;&nbsp;&nbsp; em(&#8216;fav&#8217;).style.display=&#8217;none&#8217;;<br \/>\n&nbsp;&nbsp;&nbsp; em(&#8216;sydh&#8217;).style.display=&#8221;;<br \/>\n&nbsp;&nbsp; } else {<br \/>\n&nbsp;&nbsp;&nbsp; em(&#8216;sydh&#8217;).style.display=&#8217;none&#8217;;<br \/>\n&nbsp;&nbsp;&nbsp; em(&#8216;fav&#8217;).style.display=&#8221;;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; em(&#8216;fav_i&#8217;).src= &quot;<a rel=\"nofollow\" href=\"http:\/\/www.1188.com\/fav\/\">http:\/\/www.1188.com\/fav\/<\/a>&quot; + a + &quot;.htm&quot;;<br \/>\n&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp; tab_now=a;<br \/>\n}<\/p>\n<p>\n}<br \/>\nfunction ssk(a) { em(&#8216;skinc&#8217;).href=&quot;css\/css_&quot;+a+&quot;.css&quot;;s_cookie(&#8216;skin&#8217;,a,5184000,&#8217;\/&#8217;) }<br \/>\nfunction em(e){ return document.getElementById(e)}<br \/>\nfunction g_cookie(name)<br \/>\n{var arg = name + &quot;=&quot;;var alen = arg.length;var c= document.cookie;var clen =c.length;var i = 0<br \/>\nwhile (i &lt; clen){var j = i + alen<br \/>\nif (c.substring(i, j) == arg)<br \/>\nreturn _GetCookieVal (j)<br \/>\ni = c.indexOf(&quot; &quot;, i) + 1<br \/>\nif (i == 0) break}<br \/>\nreturn null}<\/p>\n<p>\nfunction showsy(o)<br \/>\n{<br \/>\nvar sy = document.getElementById(&quot;sy&quot;);<br \/>\nvar childs = lib.childNodes(sy);<br \/>\nvar channels = new Array(&quot;xl&quot;, &quot;sh&quot;, &quot;wy&quot;, &quot;qq&quot;);<br \/>\nfor (var i=0; i&lt;childs.length; i++)<br \/>\n{<br \/>\n&nbsp;&nbsp; if (childs[i] == o)<br \/>\n&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp; childs[i].className = childs[i].className.toString() + &quot; here&quot;;<\/p>\n<p>&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp; else<br \/>\n&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp; childs[i].className = childs[i].className.toString().replace(\/here\/g, &quot;&quot;);<\/p>\n<p>&nbsp;&nbsp; }<br \/>\n}<br \/>\n}<\/p>\n<p>var lib = {<br \/>\nchildNodes: function (element)<br \/>\n{<br \/>\n&nbsp;&nbsp; var nodes = element.childNodes;<br \/>\n&nbsp;&nbsp; var _nodes = new Array();<br \/>\n&nbsp;&nbsp; var j = 0;<br \/>\n&nbsp;&nbsp; for (var i = 0; i &lt; nodes.length; i ++)<br \/>\n&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp; if (nodes[i].nodeType == 1) <br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; _nodes[j] = nodes[i];<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; j ++;<br \/>\n&nbsp;&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp; }<\/p>\n<p>&nbsp;&nbsp; return _nodes;<br \/>\n},<\/p>\n<p>\ngetBody:function(s)<br \/>\n{<br \/>\n&nbsp;&nbsp; if (document.compatMode &amp;&amp; document.compatMode != &quot;BackCompat&quot;)<br \/>\n&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp; return document.documentElement;<br \/>\n&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp; else<br \/>\n&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp; return document.body;<br \/>\n&nbsp;&nbsp; }<br \/>\n}<br \/>\n}<br \/>\n\/\/&#8211;&gt;&lt;\/script&gt;<br \/>\n&lt;style type=&quot;text\/css&quot;&gt;<br \/>\n#sy{font-size: 13px;cursor:hand;}<\/p>\n<p>#sy a.here{<br \/>\nfont-weight:bold;<br \/>\ncolor: #000000;}<br \/>\n#sy a{<br \/>\ncolor:#ff0000;}<br \/>\n&lt;\/style&gt;<br \/>\n&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<br \/>\n&lt;table width=&quot;60%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<br \/>\n&lt;tr class=&#8217;bg0&#8242;&gt;<br \/>\n&nbsp;&nbsp;&nbsp; &lt;td colspan=&quot;5&quot; height=&quot;28&quot; style=&quot;padding:0 0 0 12;&quot;&gt;&lt;div id=&quot;sy&quot;&gt;&lt;a href=&quot;\/&quot; target=&quot;_self&quot; onClick=&quot;s(1);return false&quot; id=&quot;tl_1&quot; class=&quot;here&quot; onMouseMove=&quot;showsy(this);&quot;&gt;\u7b2c\u4e00&lt;\/a&gt;\u3000&lt;span class=&quot;sy&quot;&gt;|&lt;\/span&gt;\u3000&lt;a href=&quot;\/&quot; target=&quot;_self&quot; onClick=&quot;s(2);return false&quot; id=&quot;tl_2&quot; onMouseMove=&quot;showsy(this);&quot;&gt;\u7b2c\u4e8c&lt;\/a&gt;\u3000&lt;span class=&quot;sy&quot;&gt;|&lt;\/span&gt;\u3000&lt;a href=&quot;\/&quot; target=&quot;_self&quot; onClick=&quot;s(3);return false&quot; id=&quot;tl_3&quot; onMouseMove=&quot;showsy(this);&quot;&gt;\u7b2c\u4e09&lt;\/a&gt;\u3000&lt;span class=&quot;sy&quot;&gt;|&lt;\/span&gt;\u3000&lt;a href=&quot;\/&quot; target=&quot;_self&quot; onClick=&quot;s(4);return false&quot; id=&quot;tl_4&quot; onMouseMove=&quot;showsy(this);&quot;&gt;\u7b2c\u56db&lt;\/a&gt;\u3000&lt;span class=&quot;sy&quot;&gt;|&lt;\/span&gt;\u3000&lt;a href=&quot;\/&quot; target=&quot;_self&quot; onClick=&quot;s(5);return false&quot; id=&quot;tl_5&quot; onMouseMove=&quot;showsy(this);&quot;&gt;\u7b2c\u4e94&lt;\/a&gt;&lt;\/div&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;table width=&quot;685&quot; height=&quot;205&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;id=&quot;sydh&quot;&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr class=&quot;ju&quot;&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td style=&quot;padding-left:20px;&quot;&gt;00&lt;\/td&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/tr&gt;<br \/>\n&nbsp;&nbsp;&nbsp; &lt;\/table&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div id=&quot;fav&quot; style=&quot;display:none&quot;&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;iframe allowtransparency=&quot;true&quot; id=&quot;fav_i&quot; name=&quot;fav_i&quot; src=&quot;about:blank&quot; scrolling=&quot;No&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; width=&quot;100%&quot; height=&quot;205&quot;&gt;&lt;\/iframe&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/div&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;\/table&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=gb2312&quot; \/&#038;g&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-343","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=343"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/343\/revisions"}],"predecessor-version":[{"id":66201,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/343\/revisions\/66201"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=343"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=343"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}