<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.tnnde.com/styles/feedsky7.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.tnnde.com" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/sanyblog" type="application/rss+xml"></fs:self_link><lastBuildDate>Mon, 05 Dec 2011 12:03:17 GMT</lastBuildDate><title>SaNy's Blog</title><description>Love the neighbor. But don't get caught.</description><image><url>http://creativecommons.org/images/public/somerights20.png</url><title>SaNy's Blog</title><link>http://www.tnnde.com</link></image><link>http://www.tnnde.com</link><sy:updatePeriod>daily</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>zh-cn</language><pubDate>Mon, 05 Dec 2011 12:03:17 GMT</pubDate><item><title>这是一条测试信息</title><link>http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228905/6423732/1/item.html</link><content:encoded>&lt;p&gt;google appengine转正式运营后 数据读写的配额严重缩水，blog最近一直处于空闲状态。现在有高人做了缓存处理。 来测试下。&lt;/p&gt;

&lt;h4&gt;相关阅读&lt;/h4&gt;
&lt;ul&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2010/12/93001.html&quot;&gt;MBR病毒解析&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/search&quot;&gt;SEARCH&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/albums&quot;&gt;Albums&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/07/253001.html&quot;&gt;三件事&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/08/272014.html&quot;&gt;让你的PicasaWeb API相册正常访问&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/disk&quot;&gt;Disk&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/11/338001.html&quot;&gt;11.12&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/googlecode&quot;&gt;Google Code&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/08/274003.html&quot;&gt;新的micolog主题完成&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/03/209001.html&quot;&gt;给点咸菜吃&lt;/a&gt;&lt;/li&gt;
    
&lt;/ul&gt;
&lt;p&gt;本文网址:&lt;a href=&quot;http://www.tnnde.com/2011/12/341036.html&quot;&gt;http://www.tnnde.com/2011/12/341036.html&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/584228905/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228905/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://feed.tnnde.com/comments</wfw:commentRss><slash:comments>0</slash:comments><description>&lt;img src=&quot;http://www1.feedsky.com/t1/584228905/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228905/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>网络日志</category><pubDate>Mon, 05 Dec 2011 20:03:17 +0800</pubDate><author>SaNy</author><comments>http://www.tnnde.com/2011/12/341036.html#comments</comments><guid isPermaLink="false">http://www.tnnde.com/?p=341036</guid><dc:creator>SaNy</dc:creator><fs:srclink>http://www.tnnde.com/2011/12/341036.html</fs:srclink><fs:srcfeed>http://www.tnnde.com/feed</fs:srcfeed><fs:itemid>feedsky/sanyblog/~8599881/584228905/6423732</fs:itemid></item><item><title>11.12</title><link>http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228906/6423732/1/item.html</link><content:encoded>&lt;p&gt;换了工作，比较忙 机会没怎么更新了。。。&lt;/p&gt;

&lt;h4&gt;相关阅读&lt;/h4&gt;
&lt;ul&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2010/12/93001.html&quot;&gt;MBR病毒解析&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/search&quot;&gt;SEARCH&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/07/253001.html&quot;&gt;三件事&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/12/341036.html&quot;&gt;这是一条测试信息&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/08/272014.html&quot;&gt;让你的PicasaWeb API相册正常访问&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/disk&quot;&gt;Disk&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/albums&quot;&gt;Albums&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/googlecode&quot;&gt;Google Code&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/08/274003.html&quot;&gt;新的micolog主题完成&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/03/209001.html&quot;&gt;给点咸菜吃&lt;/a&gt;&lt;/li&gt;
    
&lt;/ul&gt;
&lt;p&gt;本文网址:&lt;a href=&quot;http://www.tnnde.com/2011/11/338001.html&quot;&gt;http://www.tnnde.com/2011/11/338001.html&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/584228906/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228906/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://feed.tnnde.com/comments</wfw:commentRss><slash:comments>0</slash:comments><description>&lt;img src=&quot;http://www1.feedsky.com/t1/584228906/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228906/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>网络日志</category><pubDate>Sat, 12 Nov 2011 19:31:30 +0800</pubDate><author>SaNy</author><comments>http://www.tnnde.com/2011/11/338001.html#comments</comments><guid isPermaLink="false">http://www.tnnde.com/?p=338001</guid><dc:creator>SaNy</dc:creator><fs:srclink>http://www.tnnde.com/2011/11/338001.html</fs:srclink><fs:srcfeed>http://www.tnnde.com/feed</fs:srcfeed><fs:itemid>feedsky/sanyblog/~8599881/584228906/6423732</fs:itemid></item><item><title>2011.10.17</title><link>http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228907/6423732/1/item.html</link><content:encoded>&lt;p&gt;最近忙忙碌碌的 也不知道在忙的啥~blog也没更新 闲暇的时候 就看看新闻.人变的很懒。&amp;nbsp;&lt;/p&gt;
&lt;p&gt;上周朋友跟我说他们那招网站美工，周五跑过去面试了下 然后叫我回家做个他们公司的网站首页，再然周末2天又窝在电脑前忙起来~。因为不是学这方面出身的 搞起来还是蛮有压力的~毕竟我也没太多做公司网站美工的经验。也就抱着试试看的想法~。昨天晚上发了过去 今天收到回复邮件，&amp;ldquo;还是不够美观细致&amp;rdquo;。哎 表示鸭梨好大~&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.tnnde.com/static/exz/index.html&quot;&gt;http://www.tnnde.com/static/exz/index.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;本文网址:&lt;a href=&quot;http://www.tnnde.com/2011/10/329002.html&quot;&gt;http://www.tnnde.com/2011/10/329002.html&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/584228907/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228907/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://feed.tnnde.com/comments</wfw:commentRss><slash:comments>6</slash:comments><description>&lt;img src=&quot;http://www1.feedsky.com/t1/584228907/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228907/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>网络日志</category><pubDate>Mon, 17 Oct 2011 17:44:24 +0800</pubDate><author>SaNy</author><comments>http://www.tnnde.com/2011/10/329002.html#comments</comments><guid isPermaLink="false">http://www.tnnde.com/?p=329002</guid><dc:creator>SaNy</dc:creator><fs:srclink>http://www.tnnde.com/2011/10/329002.html</fs:srclink><fs:srcfeed>http://www.tnnde.com/feed</fs:srcfeed><fs:itemid>feedsky/sanyblog/~8599881/584228907/6423732</fs:itemid></item><item><title>Micolog文章页显示当前位置之使用JS锁定</title><link>http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228908/6423732/1/item.html</link><content:encoded>&lt;p&gt;好久没更新了 说实话也不知道说些什么~国庆假期无聊来写点啥~&lt;/p&gt;
&lt;p&gt;大家经常可以发现有的网页会显示当前你所在的位置~方便访客。我也没事搞了一下 使用的是JS实现的~因为我的文章层次不多 作用的话不是很明显。紧是一个不一样的思路吧。&lt;/p&gt;
&lt;pre class=&quot;brush: jscript;fontsize: 100; first-line: 1; &quot;&gt;function locate(){
	var glink= location.href;  //当前URL
	if(glink.indexOf(&quot;.html&quot;) &amp;gt; 0 ){  //判断URL中是否包含.html
	     lotext=$(&quot;a.locate:first&quot;).text(); //获取a.locate的第一个文本
	     lohref=$(&quot;a.locate:first&quot;).attr(&quot;href&quot;); //获取a.locate的第一个链接
	     posttl=$(&quot;.post-title-single a&quot;).text(); //获取文章标题
		 $(&quot;#locate&quot;).html('You are here: &amp;lt;a href=&quot;http://www.tnnde.com/&quot; rel=&quot;norefresh&quot;&amp;gt;Home&amp;lt;/a&amp;gt; &amp;raquo; &amp;lt;a href=&quot;'+lohref+'&quot; rel=&quot;norefresh&quot;&amp;gt;'+lotext+'&amp;lt;/a&amp;gt; &amp;raquo; '+posttl+'');  //输出
	}
}&lt;/pre&gt;


&lt;h4&gt;相关阅读&lt;/h4&gt;
&lt;ul&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/08/274003.html&quot;&gt;新的micolog主题完成&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/08/283002.html&quot;&gt;给你的文章页图片加上slimbox灯箱效果&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/02/184005.html&quot;&gt;Micolog侧边栏头像指针显示最新评论&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/03/206001.html&quot;&gt;Micolog的Feed中添加随即文章&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/01/69003.html&quot;&gt;为micolog增加热门文章功能&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/07/245005.html&quot;&gt;JQuery实现加载进度滚动动画以及Ajax后重新加载的问题&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/08/272014.html&quot;&gt;让你的PicasaWeb API相册正常访问&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/03/210001.html&quot;&gt;为Micolog添加Toolbar工具条&lt;/a&gt;&lt;/li&gt;
    
&lt;/ul&gt;
&lt;p&gt;本文网址:&lt;a href=&quot;http://www.tnnde.com/2011/10/310001.html&quot;&gt;http://www.tnnde.com/2011/10/310001.html&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/584228908/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228908/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://feed.tnnde.com/comments</wfw:commentRss><slash:comments>4</slash:comments><description>&lt;img src=&quot;http://www1.feedsky.com/t1/584228908/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228908/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>JQuery</category><category>技术分享</category><pubDate>Sun, 02 Oct 2011 10:35:31 +0800</pubDate><author>SaNy</author><comments>http://www.tnnde.com/2011/10/310001.html#comments</comments><guid isPermaLink="false">http://www.tnnde.com/?p=310001</guid><dc:creator>SaNy</dc:creator><fs:srclink>http://www.tnnde.com/2011/10/310001.html</fs:srclink><fs:srcfeed>http://www.tnnde.com/feed</fs:srcfeed><fs:itemid>feedsky/sanyblog/~8599881/584228908/6423732</fs:itemid></item><item><title>修改host翻墙上google+1</title><link>http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228909/6423732/1/item.html</link><content:encoded>&lt;p&gt;修改C:\Windows\System32\drivers\etc\hosts文件，加入下面内容~&lt;/p&gt;
&lt;p&gt;203.208.46.144 lh1.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 lh2.googleusercontent.com &lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;203.208.46.144 lh3.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 lh4.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 lh5.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 lh6.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 lh7.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 s1.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 s2.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 images1-focus-opensocial.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 images2-focus-opensocial.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 images3-focus-opensocial.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 webcache.googleusercontent.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 picasaweb.google.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;203.208.46.144 plusone.google.com&lt;/p&gt;
&lt;p&gt;203.208.46.144 plus.google.com&amp;nbsp;&lt;/p&gt;
&lt;p&gt;如果访问不通 请自己 ping google.cn 获得新的IP~&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;本文网址:&lt;a href=&quot;http://www.tnnde.com/2011/09/288088.html&quot;&gt;http://www.tnnde.com/2011/09/288088.html&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/584228909/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228909/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://feed.tnnde.com/comments</wfw:commentRss><slash:comments>4</slash:comments><description>&lt;img src=&quot;http://www1.feedsky.com/t1/584228909/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228909/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>AntiGFW</category><pubDate>Mon, 05 Sep 2011 02:43:08 +0800</pubDate><author>SaNy</author><comments>http://www.tnnde.com/2011/09/288088.html#comments</comments><guid isPermaLink="false">http://www.tnnde.com/?p=288088</guid><dc:creator>SaNy</dc:creator><fs:srclink>http://www.tnnde.com/2011/09/288088.html</fs:srclink><fs:srcfeed>http://www.tnnde.com/feed</fs:srcfeed><fs:itemid>feedsky/sanyblog/~8599881/584228909/6423732</fs:itemid></item><item><title>google+1按钮Ajax后的显示问题</title><link>http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228910/6423732/1/item.html</link><content:encoded>&lt;p&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;UPdate:&lt;/span&gt;由于之前的疏忽没有考虑到访客进入时候的地址不同~照以前的判断若不是主页进入显示的位置和返回的地址都错误 做此更新&lt;/p&gt;
&lt;pre class=&quot;brush: jscript;fontsize: 100; first-line: 1; &quot;&gt;var glink= location.href;   //获取当前url
if(glink.indexOf(&quot;#&quot;) &amp;gt; 0 ){  //判断url中是否含有&amp;ldquo;#&amp;rdquo;，没有则跳至步骤2
	glink=glink.substring(glink.indexOf('#')); //截取&amp;ldquo;#&amp;rdquo;到最后的字符
	glink=glink.replace(&quot;#&quot;,&quot;&quot;);               //删除&amp;ldquo;#&amp;rdquo;
	if(glink.length&amp;lt;3){                        //如果glink小于3个字符则判定为首页
		  $(&quot;li.gjia&quot;).html('&amp;lt;g:plusone href=&quot;http://www.tnnde.com&quot;&amp;gt;&amp;lt;/g:plusone&amp;gt;');
		}
	else{                                      //否则就是文章页或单页
		$(&quot;li.gjia&quot;).empty();
		  $(&quot;.singleplusone&quot;).remove();
		  $(&quot;.post-title-single,#post-title-page&quot;).append('&amp;lt;div class=&quot;singleplusone&quot;&amp;gt;&amp;lt;g:plusone href=&quot;http://www.tnnde.com'+glink+'&quot;&amp;gt;&amp;lt;/g:plusone&amp;gt;&amp;lt;/div&amp;gt;');
			}
		}
else{ // 步骤2.URL中没有&amp;ldquo;#&amp;rdquo;跳到这
	if(glink.length&amp;lt;22){                      //小于22个字符为首页
		$(&quot;li.gjia&quot;).html('&amp;lt;g:plusone href=&quot;http://www.tnnde.com&quot;&amp;gt;&amp;lt;/g:plusone&amp;gt;');
	}
	else{
		$(&quot;li.gjia&quot;).empty();
		$(&quot;.singleplusone&quot;).remove();
		$(&quot;.post-title-single,#post-title-page&quot;).append('&amp;lt;div class=&quot;singleplusone&quot;&amp;gt;&amp;lt;g:plusone href=&quot;'+glink+'&quot;&amp;gt;&amp;lt;/g:plusone&amp;gt;&amp;lt;/div&amp;gt;');
	}
}&lt;/pre&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ff0000;&quot;&gt;Old:&lt;/span&gt;在google刚出+1按钮的时候就尝试使用了，只后站内时候了Ajax，加载后不能显示按钮~也就搜索引擎进来的时候可以正常显示，后来索性也就去掉了。奈何上段时间发现这google+1按钮被墙了。估计是因为google+的社交被和谐的原因。万恶的GFW。近日忽然兴起 重新加上，并且实现ajax后继续显示。当然由于经常被墙 估计部分人是看不见的，有时候能穿越GFW显示出来。不过应该不少人在使用Proxy Switchy这样的自动翻墙工具，这样只要把plusone.google.com设为过滤目标~就能正常显示+1按钮了。下面来介绍下主要思路~&lt;/p&gt;
&lt;p&gt;大家都知道google+1按钮是通过&amp;lt;g:plusone&amp;gt;&amp;lt;/g:plusone&amp;gt;这样的标签再挂上提供的JS。这样就会默认读取当前的url提交给google。当然google也可以让你定义这个标签的，如添加href=&quot;&quot;指定要+1的地址 而不是由JS读取当前的url。这里ajax的显示就用到了这个特点。&lt;/p&gt;
&lt;p&gt;大家都知道ajax后的页面是不会执行ajax来页面的JS的。这就就要从ajax的js中来完成这个功能了。在ajax返回成功之后获取当前的url。&lt;/p&gt;
&lt;pre class=&quot;brush: jscript;fontsize: 100; first-line: 1; &quot;&gt;var glink= location.href;&lt;/pre&gt;
&lt;p&gt;因为ajax后为了激活返回按钮使用了hash，获得的glink是地址肯定是http://www.tnnde.com/#/xxxxx这样的。这不是真实地址。要重新构建地址这里有几个方法&lt;/p&gt;
&lt;pre class=&quot;brush: bash;fontsize: 100; first-line: 1; &quot;&gt;//一种截取
glink=glink.substring(glink.indexOf('#'));//截取#后的字段
glink=&quot;'location.host'glink.replace(&quot;#&quot;,&quot;&quot;)&quot;;重新构建url
//二种截取
glink=glink.replace(&quot;#/&quot;,&quot;&quot;);
glink=glink.replace(&quot;/!&quot;,&quot;&quot;);&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;
这样重新构建之后就glink就是真实的地址了。或者你也可以根据点击连接的href。var glink=$(&quot;a&quot;).href;&lt;/p&gt;
&lt;p&gt;获得真实地址后就是输出&amp;lt;g:plusone&amp;gt;&amp;lt;/g:plusone&amp;gt;标签了。因为我首页和文章页的显示不同。这里还要做个判断&lt;/p&gt;
&lt;pre class=&quot;brush: jscript;fontsize: 100; first-line: 1; &quot;&gt;if(glink.length&amp;lt;22){   //如果地址长度小于22个字符串就执行下面
	        $(&quot;li.gjia&quot;).html('&amp;lt;g:plusone href=&quot;'+glink+'&quot;&amp;gt;&amp;lt;/g:plusone&amp;gt;'); //输出到.gajia中
		    }
		else{  //如果地址长度大于22个字符串就执行下面
			$(&quot;li.gjia&quot;).empty();  //清空.gjia内容和字节点
			$(&quot;.singleplusone&quot;).remove(); //删除.singleplusone和里面的所有内容
			$(&quot;.post-title-single,#post-title-page&quot;).append('&amp;lt;div class=&quot;singleplusone&quot;&amp;gt;&amp;lt;g:plusone href=&quot;'+glink+'&quot;&amp;gt;&amp;lt;/g:plusone&amp;gt;&amp;lt;/div&amp;gt;'); //如果在单页就输出到#post-title-page，文章页就输出到.post-title-single
		}&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;a rel=&quot;lightbox&quot; href=&quot;http://img.tnnde.com/f/4z/?w=450&quot;&gt;&lt;img src=&quot;http://img.tnnde.com/f/4z/?w=160&amp;amp;h=160&quot; alt=&quot;SaNy's Blog&quot; /&gt;&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;a rel=&quot;lightbox&quot; href=&quot;http://img.tnnde.com/f/4y/?w=450&quot;&gt;&lt;img src=&quot;http://img.tnnde.com/f/4y/?w=160&amp;amp;h=160&quot; alt=&quot;SaNy's Blog&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
成功输出标签之后还是不会显示，ajax后调用的plusone的JS是不会执行的。还需要执行下JS&lt;/p&gt;
&lt;pre class=&quot;brush: jscript;fontsize: 100; first-line: 1; &quot;&gt;$.getScript(&quot;https://apis.google.com/js/plusone.js&quot;);&lt;/pre&gt;
&lt;p&gt;到这里AJAX也就完成同时完成了标签的构建和执行显示。&lt;/p&gt;


&lt;h4&gt;相关阅读&lt;/h4&gt;
&lt;ul&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2010/12/40002.html&quot;&gt;WordPress内置评论AJAX Comments&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/07/245005.html&quot;&gt;JQuery实现加载进度滚动动画以及Ajax后重新加载的问题&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/01/114002.html&quot;&gt;Ajax加载的Flash音乐播放器&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2010/12/75001.html&quot;&gt;使用js给特定div层中的标签增加属性&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/07/235004.html&quot;&gt;终于做完了&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2010/12/6002.html&quot;&gt;使用js给特定div层中的标签增加属性&lt;/a&gt;&lt;/li&gt;
    
&lt;/ul&gt;
&lt;p&gt;本文网址:&lt;a href=&quot;http://www.tnnde.com/2011/09/287091.html&quot;&gt;http://www.tnnde.com/2011/09/287091.html&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/584228910/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228910/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://feed.tnnde.com/comments</wfw:commentRss><slash:comments>2</slash:comments><description>&lt;img src=&quot;http://www1.feedsky.com/t1/584228910/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228910/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>JQuery</category><category>技术分享</category><pubDate>Sun, 04 Sep 2011 03:17:25 +0800</pubDate><author>SaNy</author><comments>http://www.tnnde.com/2011/09/287091.html#comments</comments><guid isPermaLink="false">http://www.tnnde.com/?p=287091</guid><dc:creator>SaNy</dc:creator><fs:srclink>http://www.tnnde.com/2011/09/287091.html</fs:srclink><fs:srcfeed>http://www.tnnde.com/feed</fs:srcfeed><fs:itemid>feedsky/sanyblog/~8599881/584228910/6423732</fs:itemid></item><item><title>把Google Code搬回家</title><link>http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228911/6423732/1/item.html</link><content:encoded>&lt;p&gt;相信有不少朋友都在使用googlecode的项目托管存储些东西~但是有没有想过在网页中调用存储的东西呢?如果你对此敢兴趣的话那接下来就带你实现它~效果的话 请点击上面的 Google Code。或者&lt;a href=&quot;/googlecode&quot; target=&quot;_blank&quot;&gt;Dome&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;如果你注意的话 你会发现googlecode本身已经提供了几个选项的feed供稿,如&amp;nbsp;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal;&quot;&gt;Project Information，&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal;&quot;&gt;Project Updates，&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal;&quot;&gt;Downloads，&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal;&quot;&gt;Wiki等 基本都是Atom的供稿~这里要利用的就是downloads的，使用google feed api转换给JSON的 ，看到这里如果你对getJSON了解的话也就知道改怎么办了吧 哈哈。其实很简单~这就不废话了 赶紧来分享吧。&lt;!--more--&gt;&lt;br /&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;首先在你需要显示的位置加入下面DIV&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;brush: xml;fontsize: 100; first-line: 1; &quot;&gt;&amp;lt;div id=&quot;svnlist&quot;&amp;gt;
&amp;lt;div id=&quot;svnb&quot;&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;下面是关键JS，在你要显示的页面插入即可 &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;brush: jscript;fontsize: 100; first-line: 1; &quot;&gt;//BY Tnnde.com
var pname=&quot;sany&quot;,//GoogleCode项目ID
num=&quot;100&quot;;//最多显示数量
jQuery(document).ready(function(a)
{a.getJSON(&quot;http://ajax.googleapis.com/ajax/services/feed/load?
v=1.0&amp;amp;q=http://code.google.com/feeds/p/
&quot;+pname+&quot;/downloads/basic&amp;amp;num=
&quot;+num+&quot;&amp;amp;callback=?&quot;,
function(d){a(d.responseData.feed.entries)
.each(function(d,b){
var e=b.title,c=b.link,f=b.content;date=b.publishedDate;
c=c.replace(&quot;http://code.google.com/p/&quot;+pname+&quot;/downloads/detail?
name=&quot;,&quot;http://&quot;+pname+&quot;.googlecode.com/files/&quot;);
date=date.substring(0,date.indexOf(&quot;-&quot;));
a(&quot;#svnb&quot;).append(&quot;&amp;lt;div class='svnb'&amp;gt;&amp;lt;div class='svnimg'&amp;gt;&amp;lt;a href='&quot;+c+
&quot;' title='DownLoad'&amp;gt;
&amp;lt;img src='http://www.gstatic.com/codesite/ph/images/dl_arrow.gif'&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;div class='file'&amp;gt;&amp;lt;div class='name'&amp;gt;
&amp;lt;a href='&quot;+c+&quot;' title=''&amp;gt;&quot;+e+&quot;&amp;lt;/a&amp;gt;&amp;lt;div class='svndate'&amp;gt;&quot;+date+&quot;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class='info'&amp;gt;&quot;+f+&quot;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&quot;)});
a(&quot;#svnb&quot;).slideDown(300);
a(&quot;.info a&quot;).remove()});return!1});&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt; 下面是本站的样式 你可以发挥你的创意 自己修改&lt;/p&gt;
&lt;pre class=&quot;brush: css;fontsize: 100; first-line: 1; &quot;&gt;#svnb{ display:none;}
.svnb{ padding:10px;}
.svnimg{float: left;padding: 5px;}
#svnb .file{padding: 3px 0 0 45px;min-height: 35px; background:#DDF8CC;-webkit-border-radius: 6px;-moz-border-radius: 6px;border-radius: 6px;}
#svnb .file:hover{ background:#DDF888;}
#svnb .name{font-weight: bold;}
#svnb .svndate{ float:right;font-weight:normal;}
#svnb .info{ height:10px;}
#svblog{ height:48px; width:48px; position:absolute; right:5px; top:-5px; background:url(images/log.png) no-repeat;}&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt; 完成这简单几部 你就可以在自己的页面调用google Code的项目下载连接了~&lt;/p&gt;
&lt;p&gt;完成代码下载 &lt;a href=&quot;http://sany.googlecode.com/files/googlesvn.zip&quot;&gt;GoogleSVNJS&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;另外 google app engine逐渐走向收费模式 早晨收到gae的一封邮件~将要启用新的&lt;a href=&quot;http://www.google.com/enterprise/cloud/appengine/pricing.html&quot; target=&quot;_blank&quot;&gt;收费标准&lt;/a&gt;。当然我这里目前访客较少 应该不受什么大&lt;/p&gt;

&lt;p&gt;本文网址:&lt;a href=&quot;http://www.tnnde.com/2011/09/295001.html&quot;&gt;http://www.tnnde.com/2011/09/295001.html&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/584228911/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228911/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://feed.tnnde.com/comments</wfw:commentRss><slash:comments>5</slash:comments><description>&lt;img src=&quot;http://www1.feedsky.com/t1/584228911/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228911/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>JQuery</category><category>技术分享</category><pubDate>Thu, 01 Sep 2011 08:09:08 +0800</pubDate><author>SaNy</author><comments>http://www.tnnde.com/2011/09/295001.html#comments</comments><guid isPermaLink="false">http://www.tnnde.com/?p=295001</guid><dc:creator>SaNy</dc:creator><fs:srclink>http://www.tnnde.com/2011/09/295001.html</fs:srclink><fs:srcfeed>http://www.tnnde.com/feed</fs:srcfeed><fs:itemid>feedsky/sanyblog/~8599881/584228911/6423732</fs:itemid></item><item><title>GAE数据在不同应用之间迁移</title><link>http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228912/6423732/1/item.html</link><content:encoded>&lt;p&gt;google appengine在&lt;span style=&quot;font-family: Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 21px;&quot;&gt;&amp;nbsp;1.4.3版本的时候提供了后台数据管理&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial, sans-serif; line-height: normal;&quot;&gt;Datastore Admin选项.其中比较亮眼的是数据迁移。当然之前我也没使用过~上天新建个应用测试东西的时候忽然想到把blog数据迁移过去测试下。也为micolog提供了信的备份方法 而且能记录点击数次等详细信息~&lt;!--more--&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif; line-height: normal;&quot;&gt;&lt;img src=&quot;http://code.google.com/intl/zh-CN/appengine/docs/images/datastore_admin.png&quot; alt=&quot;SaNy&quot; width=&quot;791&quot; height=&quot;396&quot; /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;界面如上图，选择你要拷贝的数据点击 Copy To Other App.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;要想完成拷贝，你还需要做2步，开始目标应用的remote_api。在app.yaml中加入 &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;builtins:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;- remote_api: on&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;即可开始remote_api。还要在当前程序中新建&amp;nbsp;appengine_config.py 。录入&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;remoteapi_CUSTOM_ENVIRONMENT_AUTHENTICATION = ('HTTP_X_APPENGINE_INBOUND_APPID', ['APPSPOTID'])&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;把APPSPOTID改成你的ID 完成以上2步后 点击&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial, sans-serif; line-height: normal;&quot;&gt;Copy To Other App后跳转页面。把&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;https://{TARGET_APPID}.appspot.com/_ah/remote_api &amp;nbsp; &amp;nbsp;改成你的应用ID&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;X-URLFetch-Service-Id:APPSPOT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 改成&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial, sans-serif; line-height: normal;&quot;&gt;appengine_config.py中的ID&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;完成好继续即可完成~这样大概等个半分钟左右 你的数据就会成功复制到目标程序&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h4&gt;相关阅读&lt;/h4&gt;
&lt;ul&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2010/12/49001.html&quot;&gt;GAE被墙的解决办法&lt;/a&gt;&lt;/li&gt;
    
&lt;/ul&gt;
&lt;p&gt;本文网址:&lt;a href=&quot;http://www.tnnde.com/2011/08/288085.html&quot;&gt;http://www.tnnde.com/2011/08/288085.html&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/584228912/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228912/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://feed.tnnde.com/comments</wfw:commentRss><slash:comments>0</slash:comments><description>&lt;img src=&quot;http://www1.feedsky.com/t1/584228912/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228912/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>技术分享</category><pubDate>Wed, 31 Aug 2011 03:10:32 +0800</pubDate><author>SaNy</author><comments>http://www.tnnde.com/2011/08/288085.html#comments</comments><guid isPermaLink="false">http://www.tnnde.com/?p=288085</guid><dc:creator>SaNy</dc:creator><fs:srclink>http://www.tnnde.com/2011/08/288085.html</fs:srclink><fs:srcfeed>http://www.tnnde.com/feed</fs:srcfeed><fs:itemid>feedsky/sanyblog/~8599881/584228912/6423732</fs:itemid></item><item><title>给你的文章页图片加上slimbox灯箱效果</title><link>http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228913/6423732/1/item.html</link><content:encoded>&lt;p&gt;早前我直接使用的是鸣做的micolog下的lightbox插件比较方便，但是我能不用插件就尽量不用插件，更何况lightbox比slimbox确实大了点。通过自己手动添加也是很简单就能用上js紧紧只有4k的slimbox2。下面让我们动手吧。&lt;/p&gt;
&lt;pre class=&quot;brush: jscript;fontsize: 100; first-line: 1; &quot;&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;/xxx/slimbox2.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;!--more--&gt;&lt;br /&gt; 在&amp;lt;/body&amp;gt;之前插入以上js。jquery.min.js如果已经加载了就不用再加载了。接下来是CSS。&lt;/p&gt;
&lt;pre class=&quot;brush: css;fontsize: 100; first-line: 1; &quot;&gt;/* SLIMBOX2 */
#lbOverlay{position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;background-color:#000;cursor:pointer;}
#lbCenter, #lbBottomContainer{position:absolute;z-index: 9999;overflow: hidden;background-color:#fff;}
.lbLoading{background:#fff url(images/loading.gif) no-repeat center;}
#lbImage {position:absolute;left:0;top:0;border:6px solid #fff;background-repeat:no-repeat;}
#lbPrevLink,#lbNextLink{display: block;position: absolute;top:0;width:50%;outline:none;}
#lbPrevLink{left:0;}
#lbPrevLink:hover{background:transparent url(images/prevlabel.gif) no-repeat 0 15%;}
#lbNextLink{right:0;}
#lbNextLink:hover{background:transparent url(images/nextlabel.gif) no-repeat 100% 15%;}
#lbCaption,#lbNumber,#lbCloseLink,#lbBottom{display:none;}&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt; CSS你可以直接添加到主题的style.css中，减少调用次数。然后把下载连接中的图片放在images中。这样基本的调用就结束了。下面要做的就是让文章页面的所有图片点击都是slimbox打开。&lt;/p&gt;
&lt;p&gt;&amp;nbsp;这需要你自己找文章页的div。找到包含文章内容的那个DIV后就可以动手了，一般是 &amp;lt;div id=&quot;&lt;span style=&quot;font-family: Consolas, 'Lucida Console', monospace; line-height: normal; white-space: pre-wrap; -webkit-text-size-adjust: none;&quot;&gt;content&quot;&amp;gt;。插入下面JS&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;brush: jscript;fontsize: 100; first-line: 1; &quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
$('#content'+' img').each(function(){
            img = $(this);
            if(img.parent('a').length &amp;lt; 1){
                src = img.attr('src');
                img.wrap('&amp;lt;a href='+src+'&amp;gt;&amp;lt;/a&amp;gt;');
            }
        });
$(&quot;#content a:has(img)&quot;).slimbox();
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt; 做完这些你的文章中的图片就可以slimbox显示了，只有4k的slimox2.js。有木有心动呢。&lt;a href=&quot;http://sany.googlecode.com/files/slimbox2.zip&quot; target=&quot;_blank&quot;&gt;slimbox.zip&lt;/a&gt;(压缩包下载)&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;DEMO:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;直接在文章中加入图片或使用&amp;lt;img&amp;gt;标签引用图片就行~然后JS会自动添加效果 点击图片可以看效果&lt;br /&gt; &lt;a href=&quot;http://code.google.com/intl/zh-CN/appengine/docs/images/datastore_admin.png&quot;&gt;&lt;img src=&quot;http://code.google.com/intl/zh-CN/appengine/docs/images/datastore_admin.png&quot; alt=&quot;gae&quot; width=&quot;791&quot; height=&quot;396&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;相关阅读&lt;/h4&gt;
&lt;ul&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/10/310001.html&quot;&gt;Micolog文章页显示当前位置之使用JS锁定&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/08/274003.html&quot;&gt;新的micolog主题完成&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/02/184005.html&quot;&gt;Micolog侧边栏头像指针显示最新评论&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/03/210001.html&quot;&gt;为Micolog添加Toolbar工具条&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/03/206001.html&quot;&gt;Micolog的Feed中添加随即文章&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/01/69003.html&quot;&gt;为micolog增加热门文章功能&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/07/245005.html&quot;&gt;JQuery实现加载进度滚动动画以及Ajax后重新加载的问题&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/08/272014.html&quot;&gt;让你的PicasaWeb API相册正常访问&lt;/a&gt;&lt;/li&gt;
    
&lt;/ul&gt;
&lt;p&gt;本文网址:&lt;a href=&quot;http://www.tnnde.com/2011/08/283002.html&quot;&gt;http://www.tnnde.com/2011/08/283002.html&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/584228913/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228913/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://feed.tnnde.com/comments</wfw:commentRss><slash:comments>11</slash:comments><description>&lt;img src=&quot;http://www1.feedsky.com/t1/584228913/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228913/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>JQuery</category><category>技术分享</category><pubDate>Thu, 25 Aug 2011 16:37:25 +0800</pubDate><author>SaNy</author><comments>http://www.tnnde.com/2011/08/283002.html#comments</comments><guid isPermaLink="false">http://www.tnnde.com/?p=283002</guid><dc:creator>SaNy</dc:creator><fs:srclink>http://www.tnnde.com/2011/08/283002.html</fs:srclink><fs:srcfeed>http://www.tnnde.com/feed</fs:srcfeed><fs:itemid>feedsky/sanyblog/~8599881/584228913/6423732</fs:itemid></item><item><title>让你的PicasaWeb API相册正常访问</title><link>http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228914/6423732/1/item.html</link><content:encoded>&lt;p&gt;起初我并没在意这个问题，因为我印象张google偶尔被墙也是正常的事。昨天到&lt;a rel=&quot;nofollow&quot; href=&quot;http://014.cc/&quot; target=&quot;_blank&quot;&gt;Dianso&lt;/a&gt;那里去逛的时候发现他的相册可以打开而我的不行。。查看了下地址才知道他用了反向代理-，-让我这服务器到期还不想再买的人情何以堪~然后我邪恶的把自己的一个picasa的图片地址重新构建在他的nginx上 可以正常访问。当然我没有继续邪恶下去，再当然本文的目的也不是教你去盗用别人代理的。。有想邪恶的童鞋先看完本文你就不用邪恶了。。&lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;我开始的想法是自己找个基于gae的webproxy程序拿来改改，专代理picasa的地址，已经修改的差不多了 绑上域名测试的时候猜发现 估计现在GFW已经升级了 或许是根据关键字源码啥的过滤了？反正就是访问不通。这个暂时不说 以后有时间继续研究。在我纠结的时候意外发现Picasa的连接地址使用的是https安全连接...你想google得多财大气粗。尝试了下连接换为http的可以正常访问。这下简单了把js获取的安全连接正则成普通连接就成了。找到你的picasa.js 。找到JS中地址变量 重新给这个地址正则后赋值。&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class=&quot;brush: jscript;fontsize: 100; first-line: 1; &quot;&gt;jQuery(document).ready(function(b) {
    var e = b(&quot;#toload&quot;).offset();
    $body = window.opera ? document.compatMode == &quot;CSS1Compat&quot; ? b(&quot;html&quot;) : b(&quot;body&quot;) : b(&quot;html,body&quot;);
    b.getJSON(&quot;https://picasaweb.google.com/data/feed/api/user/ID?fields=openSearch:totalResults&amp;amp;alt=json&amp;amp;callback=?&quot;,
    function(c) {
        for (var c = parseInt(c.feed.openSearch$totalResults.$t / 6) + 1, d = 1; d &amp;lt;= c;) b(&quot;#navi&quot;).append(&quot;&amp;lt;a href='&quot; + d + &quot;'&amp;gt;&amp;lt;/a&amp;gt;&quot;),
        d++;
        b(&quot;#navi a&quot;).eq(1).addClass(&quot;current&quot;)
    });
    b(&quot;#navi a&quot;).live(&quot;click&quot;,
    function() {
        b(&quot;#items&quot;).fadeOut(500);
        b(this).addClass(&quot;current&quot;).siblings().removeClass();
        var c = b(this).attr(&quot;href&quot;) - 1;
        b.getJSON(&quot;https://picasaweb.google.com/data/feed/api/user/ID?start-index=&quot; + (6 * c + 1) + &quot;&amp;amp;max-results=6&amp;amp;fields=entry(title,gphoto:id,media:group(media:thumbnail))&amp;amp;alt=json&amp;amp;callback=?&quot;,
        function(d) {
            b(&quot;#items&quot;).empty();
            $body.animate({
                scrollTop: e
            },
            400);
            b(d.feed.entry).each(function(d, c) {
                var f = c.title.$t,
                g = c.gphoto$id.$t,
                e = c.media$group.media$thumbnail[0].url;
				e = e.replace(&quot;https://&quot;,&quot;http://&quot;);
                b(&quot;#items&quot;).append(&quot;&amp;lt;div class='item'&amp;gt;&amp;lt;div class='thumb'&amp;gt;&amp;lt;img src='&quot; +
                e + &quot;' id='&quot; + g + &quot;'/&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;span&amp;gt;&quot; + f + &quot;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&quot;)
            });
            b(&quot;#items&quot;).fadeIn(400)
        });
        return ! 1
    });
    b(&quot;#navi a&quot;).click();
    b(&quot;.thumb img&quot;).live(&quot;click&quot;,
    function() {
        b(&quot;#items&quot;).fadeOut(500);
        var c = b(this).attr(&quot;id&quot;);
        b.getJSON(&quot;https://picasaweb.google.com/data/feed/api/user/ID/albumid/&quot; + c + &quot;?fields=title,subtitle,icon,gphoto:numphotos,entry(media:group(media:content,media:title))&amp;amp;alt=json&amp;amp;callback=?&quot;,
        function(d) {
            b(&quot;#items&quot;).empty();
            $body.animate({
                scrollTop: e
            },
            400);
            var d = d.feed,
            c = d.title.$t,
            h = d.subtitle.$t,
            f = d.icon.$t,
            g = d.gphoto$numphotos.$t;
			f = f.replace(&quot;https://&quot;,&quot;http://&quot;);
            b(&quot;#items&quot;).append(&quot;&amp;lt;div id='albums'&amp;gt;&amp;lt;img src='&quot; + f + &quot;'&amp;gt;&amp;lt;div class='des'&amp;gt;&amp;lt;p&amp;gt;\u76f8\u518c\u540d\uff1a &quot; + c + &quot;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;\u6570\u91cf\uff1a &quot; + g + &quot; \u5f20&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;\u8bf4\u660e\uff1a &quot; + h + &quot;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&quot;);
            b(d.entry).each(function(d, c) {
                a = c.media$group;
                var e = a.media$title.$t,
                f = a.media$content[0].url;
				f = f.replace(&quot;https://&quot;,&quot;http://&quot;);
                b(&quot;#items&quot;).append(&quot;&amp;lt;div class='item'&amp;gt;&amp;lt;div class='thumb-1'&amp;gt;&amp;lt;a href='&quot; + f + &quot;?imgmax=800'&amp;gt;&amp;lt;img src='&quot; + f + &quot;?imgmax=118'/&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;span&amp;gt;&quot; + e + &quot;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&quot;)
            });
            b(&quot;#items&quot;).fadeIn(500);
            b(&quot;.thumb-1 a:has(img)&quot;).slimbox()
        });
        return ! 1
    })
});&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;上面代码是在木木同学的源代码基础上简单修改了下请把其中的json地址&lt;span style=&quot;font-family: 'Courier New', monospace; line-height: 18px; white-space: pre;&quot;&gt;https://picasaweb.google.com/data/feed/api/user/ID/中的ID换成自己的~&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: 'Courier New', monospace;&quot;&gt;&lt;span style=&quot;line-height: 18px; white-space: pre;&quot;&gt;通过这样的简单正则后 输出的地址为普通的http连接。反正现在访问没问题。至于以后GFW怎么样 我也不知道&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h4&gt;相关阅读&lt;/h4&gt;
&lt;ul&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/08/274003.html&quot;&gt;新的micolog主题完成&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/03/209001.html&quot;&gt;给点咸菜吃&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2010/12/48001.html&quot;&gt;GAE上使用Gtap搭建个人Twitter API&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/search&quot;&gt;SEARCH&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/11/338001.html&quot;&gt;11.12&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2010/12/49001.html&quot;&gt;GAE被墙的解决办法&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/12/341036.html&quot;&gt;这是一条测试信息&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2011/07/245005.html&quot;&gt;JQuery实现加载进度滚动动画以及Ajax后重新加载的问题&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/2010/12/93001.html&quot;&gt;MBR病毒解析&lt;/a&gt;&lt;/li&gt;
    
    &lt;li&gt;&lt;a href=&quot;http://www.tnnde.com/disk&quot;&gt;Disk&lt;/a&gt;&lt;/li&gt;
    
&lt;/ul&gt;
&lt;p&gt;本文网址:&lt;a href=&quot;http://www.tnnde.com/2011/08/272014.html&quot;&gt;http://www.tnnde.com/2011/08/272014.html&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/584228914/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228914/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://feed.tnnde.com/comments</wfw:commentRss><slash:comments>7</slash:comments><description>&lt;img src=&quot;http://www1.feedsky.com/t1/584228914/sanyblog/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/sanyblog/~8599881/584228914/6423732/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>AntiGFW</category><category>技术分享</category><pubDate>Wed, 24 Aug 2011 17:59:54 +0800</pubDate><author>SaNy</author><comments>http://www.tnnde.com/2011/08/272014.html#comments</comments><guid isPermaLink="false">http://www.tnnde.com/?p=272014</guid><dc:creator>SaNy</dc:creator><fs:srclink>http://www.tnnde.com/2011/08/272014.html</fs:srclink><fs:srcfeed>http://www.tnnde.com/feed</fs:srcfeed><fs:itemid>feedsky/sanyblog/~8599881/584228914/6423732</fs:itemid></item></channel></rss>
