{"id":785,"date":"2011-11-18T00:42:55","date_gmt":"2011-11-17T16:42:55","guid":{"rendered":""},"modified":"2014-03-11T22:40:43","modified_gmt":"2014-03-11T14:40:43","slug":"%e7%b1%bb%e4%bc%bc%e6%b7%98%e5%ae%9d%e7%bd%91%e7%9a%84%e5%9b%be%e7%89%87%e6%94%be%e5%a4%a7jquery%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2011\/11\/18\/785.htm","title":{"rendered":"\u7c7b\u4f3c\u6dd8\u5b9d\u7f51\u7684\u56fe\u7247\u653e\u5927jQuery\u4ee3\u7801"},"content":{"rendered":"<div class=\"UBBDiv\">\n<p>[Code]&lt;!DOCTYPE&nbsp;html&nbsp;PUBLIC&nbsp;&quot;-\/\/W3C\/\/DTD&nbsp;XHTML&nbsp;1.0&nbsp;Transitional\/\/EN&quot;&nbsp;&quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&quot;&gt;&nbsp;&nbsp; <\/p>\n<p>02&nbsp;&lt;title&gt;\u7c7b\u4f3c\u6dd8\u5b9d\u7f51\u7684\u56fe\u7247\u653e\u5927\u4ee3\u7801&lt;\/title&gt;&nbsp;&nbsp; <\/p>\n<p>03&nbsp;&lt;script&nbsp;type=&quot;text\/javascript&quot;&nbsp;src=&quot;\/ajaxjs\/jquery1.3.2.js&quot;&gt;&lt;\/script&gt;&nbsp;&nbsp; <\/p>\n<p>04&nbsp;&lt;style&nbsp;type=&quot;text\/css&quot;&gt;&nbsp; <\/p>\n<p>05&nbsp;#tip&nbsp;&nbsp;&nbsp;{position:absolute;color:#333;display:none;}&nbsp;&nbsp; <\/p>\n<p>06&nbsp;#tip&nbsp;s&nbsp;&nbsp;&nbsp;{position:absolute;top:40px;left:-20px;display:block;width:0px;height:0px;font-size:0px;line-height:0px;border-color:transparent&nbsp;#BBA&nbsp;transparent&nbsp;transparent;border-style:dashed&nbsp;solid&nbsp;dashed&nbsp;dashed;border-width:10px;}&nbsp;&nbsp; <\/p>\n<p>07&nbsp;#tip&nbsp;s&nbsp;i&nbsp;&nbsp;&nbsp;{position:absolute;top:-10px;left:-8px;display:block;width:0px;height:0px;font-size:0px;line-height:0px;border-color:transparent&nbsp;#fff&nbsp;transparent&nbsp;transparent;border-style:dashed&nbsp;solid&nbsp;dashed&nbsp;dashed;border-width:10px;}&nbsp;&nbsp; <\/p>\n<p>08&nbsp;#tip&nbsp;.t_box&nbsp;&nbsp;&nbsp;{position:relative;background-color:#CCC;filter:alpha(opacity=50);-moz-opacity:0.5;bottom:-3px;right:-3px;}&nbsp;&nbsp; <\/p>\n<p>09&nbsp;#tip&nbsp;.t_box&nbsp;div&nbsp;&nbsp;{position:relative;background-color:#FFF;border:1px&nbsp;solid&nbsp;#ACA899;background:#FFF;padding:1px;top:-3px;left:-3px;}&nbsp;&nbsp; <\/p>\n<p>10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/p>\n<p>11&nbsp;.tip&nbsp;&nbsp;&nbsp;{width:82px;height:82px;border:1px&nbsp;solid&nbsp;#DDD;}&nbsp;&nbsp; <\/p>\n<p>12&nbsp;&lt;\/style&gt;&nbsp;&nbsp; <\/p>\n<p>13&nbsp;&lt;script&nbsp;type=&quot;text\/javascript&quot;&gt;&nbsp;&nbsp; <\/p>\n<p>14&nbsp;$(function(){&nbsp;&nbsp; <\/p>\n<p>15&nbsp;&nbsp;&nbsp;&nbsp;$(&#8216;.tip&#8217;).mouseover(function(){&nbsp;&nbsp; <\/p>\n<p>16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;$tip=$(&#8216;&lt;div&nbsp;id=&quot;tip&quot;&gt;&lt;div&nbsp;class=&quot;t_box&quot;&gt;&lt;div&gt;&lt;s&gt;&lt;i&gt;&lt;\/i&gt;&lt;\/s&gt;&lt;img&nbsp;src=&quot;&#8217;+this.src+&#8217;&quot;&nbsp;\/&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&#8217;);&nbsp;&nbsp; <\/p>\n<p>17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&#8216;body&#8217;).append($tip);&nbsp;&nbsp; <\/p>\n<p>18&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&#8216;#tip&#8217;).show(&#8216;fast&#8217;);&nbsp;&nbsp; <\/p>\n<p>19&nbsp;&nbsp;&nbsp;&nbsp;}).mouseout(function(){&nbsp;&nbsp; <\/p>\n<p>20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&#8216;#tip&#8217;).remove();&nbsp;&nbsp; <\/p>\n<p>21&nbsp;&nbsp;&nbsp;&nbsp;}).mousemove(function(e){&nbsp;&nbsp; <\/p>\n<p>22&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&#8216;#tip&#8217;).css({&quot;top&quot;:(e.pageY-60)+&quot;px&quot;,&quot;left&quot;:(e.pageX+30)+&quot;px&quot;})&nbsp;&nbsp; <\/p>\n<p>23&nbsp;&nbsp;&nbsp;&nbsp;})&nbsp;&nbsp; <\/p>\n<p>24&nbsp;})&nbsp;&nbsp; <\/p>\n<p>25&nbsp;&lt;\/script&gt;&nbsp;&nbsp; <\/p>\n<p>26&nbsp;&lt;p&gt;&nbsp;&lt;\/p&gt;&nbsp;&nbsp; <\/p>\n<p>27&nbsp;&lt;a&nbsp;href=&quot;\/&quot;&gt;&lt;img&nbsp;class=&quot;tip&quot;&nbsp;src=&quot;\/jscss\/demoimg\/201012\/1.jpg&quot;&nbsp;\/&gt;&lt;\/a&gt;&nbsp;&nbsp; <\/p>\n<p>28&nbsp;&lt;a&nbsp;href=&quot;#&quot;&gt;&lt;img&nbsp;class=&quot;tip&quot;&nbsp;src=&quot;\/jscss\/demoimg\/201012\/2.jpg&quot;&nbsp;\/&gt;&lt;\/a&gt;&nbsp;&nbsp; <\/p>\n<p>29&nbsp;&lt;a&nbsp;href=&quot;#&quot;&nbsp;&gt;&lt;img&nbsp;class=&quot;tip&quot;&nbsp;src=&quot;\/jscss\/demoimg\/201012\/3.jpg&quot;&nbsp;\/&gt;&lt;\/a&gt;&nbsp; <\/p>\n<p>[\/Code]<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Code]&lt;!DOCTYPE&nbsp;html&nbsp;PUBLIC&nbsp;&quot;-\/\/W3C\/\/DTD&nbsp;XHTML&nbsp;1.0&nbsp;Transitional\/\/EN&quot;&nbsp;&#038;qu&#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-785","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/785","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=785"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/785\/revisions"}],"predecessor-version":[{"id":66616,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/785\/revisions\/66616"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=785"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=785"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}