<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>家有小虎 &#187; Widget</title>
	<atom:link href="http://jiahu.net/tag/widget/feed" rel="self" type="application/rss+xml" />
	<link>http://jiahu.net</link>
	<description>我在路上, 你不在身旁. 想你的时候, 温暖依然.</description>
	<lastBuildDate>Fri, 16 Jul 2010 23:32:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>对Random Image Widget的一点修改</title>
		<link>http://jiahu.net/%e5%af%b9random-image-widget%e7%9a%84%e4%b8%80%e7%82%b9%e4%bf%ae%e6%94%b9.htm</link>
		<comments>http://jiahu.net/%e5%af%b9random-image-widget%e7%9a%84%e4%b8%80%e7%82%b9%e4%bf%ae%e6%94%b9.htm#comments</comments>
		<pubDate>Thu, 01 May 2008 16:25:09 +0000</pubDate>
		<dc:creator>o2ho</dc:creator>
				<category><![CDATA[工作]]></category>
		<category><![CDATA[生活]]></category>
		<category><![CDATA[Random Image]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[主题]]></category>
		<category><![CDATA[图片]]></category>

		<guid isPermaLink="false">http://cngator.net/?p=12</guid>
		<description><![CDATA[今天上午陪老婆出去逛街买衣服和鞋, 回来有点累了, 倒头就睡. 再睁眼时已经是晚上七点了, 被老婆打起来吃晚饭. 饭后无所事事, 于是打开Blog看看, 准备写点什么. 看到了Random Image这个Widget, 感觉似乎离自己的要求还差一点点. 打开代码看看, 于是有了现在的效果. 如果你对这个效果感兴趣, 可以联系我索取打包的修改文件. 如果你有一些网页编写知识, 喜欢自己动手, 那么就看看下面的步骤: 1. 备份 wp-content/plugins/random-image-widget/random_image.php 2. 修改 random_image.php, 修改第91行 echo &#8216;&#60;a href=&#8221;&#8216;;, 新的代码为: echo &#8216;&#60;a class=&#8221;p1&#8243; href=&#8221;&#8216;; 在第94行插入以下代码: echo $img_scale; echo &#8216; alt=&#8221;&#8216; . $caption . &#8216;&#8221;&#8216;; echo &#8216; /&#62;&#8217;; echo &#8216;&#8221; 3. 备份 wp-content/themes/[你的主题]/style.css 4. 修改 wp-content/themes/[你的主题]/style.css, 添加下面的样式: [...]]]></description>
			<content:encoded><![CDATA[<p>今天上午陪老婆出去逛街买衣服和鞋, 回来有点累了, 倒头就睡. 再睁眼时已经是晚上七点了, 被老婆打起来吃晚饭.</p>
<p>饭后无所事事, 于是打开Blog看看, 准备写点什么. 看到了Random Image这个Widget, 感觉似乎离自己的要求还差一点点. 打开代码看看, 于是有了现在的效果.</p>
<p>如果你对这个效果感兴趣, 可以联系我索取打包的修改文件. 如果你有一些网页编写知识, 喜欢自己动手, 那么就看看下面的步骤:</p>
<p>1. 备份 <span>wp-content/plugins/random-image-widget/random_image.php</span></p>
<p>2. 修改 random_image.php,<br />
修改第91行 echo &#8216;&lt;a href=&#8221;&#8216;;, 新的代码为: echo &#8216;&lt;a class=&#8221;p1&#8243; href=&#8221;&#8216;;<br />
在第94行插入以下代码:<br />
echo $img_scale;<br />
echo &#8216; alt=&#8221;&#8216; . $caption . &#8216;&#8221;&#8216;;<br />
echo &#8216; /&gt;&#8217;;<br />
echo &#8216;&#8221;<img class="large" style="padding: 3px;" src="' . $item_url . '" alt="" /></p>
<p>3. 备份 <span>wp-content/themes/[你的主题]/style.css</span></p>
<p>4. 修改 <span>wp-content/themes/[你的主题]/style.css</span>, 添加下面的样式:<br />
/* Begin Random Image */<br />
#random_image_wrapper {<br />
position: relative;<br />
}</p>
<p>#random_image_wrapper a .large {<br />
border: 0px;<br />
display: block;<br />
height: 1px;<br />
position: absolute;<br />
width: 1px;<br />
}</p>
<p>#random_image_wrapper a img {<br />
border: 0;<br />
}</p>
<p>#random_image_wrapper a.p1, #random_image_wrapper a.p1:visited {<br />
border: 0px solid #000000;<br />
display: block;<br />
text-decoration: none;<br />
}</p>
<p>#random_image_wrapper a.p1:hover {<br />
text-decoration: none;<br />
}</p>
<p>#random_image_wrapper a.p1:hover .large {<br />
border: 1px solid #000000;<br />
display: block;<br />
position: absolute;<br />
width: 320px;<br />
height: 240px;<br />
}<br />
/* End Random Image */</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=%40jiahum%3A+%E5%AF%B9Random+Image+Widget%E7%9A%84%E4%B8%80%E7%82%B9%E4%BF%AE%E6%94%B9+-+http://jiahu.net/u/by&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-plurk">
			<a href="http://www.plurk.com/m?content=%E5%AF%B9Random+Image+Widget%E7%9A%84%E4%B8%80%E7%82%B9%E4%BF%AE%E6%94%B9+-+http://jiahu.net/%e5%af%b9random-image-widget%e7%9a%84%e4%b8%80%e7%82%b9%e4%bf%ae%e6%94%b9.htm&amp;qualifier=shares" rel="nofollow" class="external" title="分享到Plurk">分享到Plurk</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://jiahu.net/%e5%af%b9random-image-widget%e7%9a%84%e4%b8%80%e7%82%b9%e4%bf%ae%e6%94%b9.htm&amp;title=%E5%AF%B9Random+Image+Widget%E7%9A%84%E4%B8%80%E7%82%B9%E4%BF%AE%E6%94%B9" rel="nofollow" class="external" title="添加到Google Bookmarks">添加到Google Bookmarks</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://jiahu.net/%e5%af%b9random-image-widget%e7%9a%84%e4%b8%80%e7%82%b9%e4%bf%ae%e6%94%b9.htm&amp;title=%E5%AF%B9Random+Image+Widget%E7%9A%84%E4%B8%80%E7%82%B9%E4%BF%AE%E6%94%B9" rel="nofollow" class="external" title="分享到del.icio.us">分享到del.icio.us</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://jiahu.net/%e5%af%b9random-image-widget%e7%9a%84%e4%b8%80%e7%82%b9%e4%bf%ae%e6%94%b9.htm&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=%E5%AF%B9Random+Image+Widget%E7%9A%84%E4%B8%80%E7%82%B9%E4%BF%AE%E6%94%B9&amp;body=Link: http://jiahu.net/%e5%af%b9random-image-widget%e7%9a%84%e4%b8%80%e7%82%b9%e4%bf%ae%e6%94%b9.htm (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %E4%BB%8A%E5%A4%A9%E4%B8%8A%E5%8D%88%E9%99%AA%E8%80%81%E5%A9%86%E5%87%BA%E5%8E%BB%E9%80%9B%E8%A1%97%E4%B9%B0%E8%A1%A3%E6%9C%8D%E5%92%8C%E9%9E%8B%2C%20%E5%9B%9E%E6%9D%A5%E6%9C%89%E7%82%B9%E7%B4%AF%E4%BA%86%2C%20%E5%80%92%E5%A4%B4%E5%B0%B1%E7%9D%A1.%20%E5%86%8D%E7%9D%81%E7%9C%BC%E6%97%B6%E5%B7%B2%E7%BB%8F%E6%98%AF%E6%99%9A%E4%B8%8A%E4%B8%83%E7%82%B9%E4%BA%86%2C%20%E8%A2%AB%E8%80%81%E5%A9%86%E6%89%93%E8%B5%B7%E6%9D%A5%E5%90%83%E6%99%9A%E9%A5%AD.%0D%0A%0D%0A%E9%A5%AD%E5%90%8E%E6%97%A0%E6%89%80%E4%BA%8B%E4%BA%8B%2C%20%E4%BA%8E%E6%98%AF%E6%89%93%E5%BC%80Blog%E7%9C%8B%E7%9C%8B%2C%20%E5%87%86%E5%A4%87%E5%86%99%E7%82%B9%E4%BB%80%E4%B9%88.%20%E7%9C%8B%E5%88%B0%E4%BA%86Random%20Image%E8%BF%99%E4%B8%AAWidget%2C%20%E6%84%9F%E8%A7%89%E4%BC%BC%E4%B9%8E%E7%A6%BB%E8%87%AA%E5%B7%B1%E7%9A%84%E8%A6%81%E6%B1%82%E8%BF%98%E5%B7%AE%E4%B8%80%E7%82%B9%E7%82%B9.%20" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://jiahu.net/%e5%af%b9random-image-widget%e7%9a%84%e4%b8%80%e7%82%b9%e4%bf%ae%e6%94%b9.htm&amp;t=%E5%AF%B9Random+Image+Widget%E7%9A%84%E4%B8%80%E7%82%B9%E4%BF%AE%E6%94%B9" rel="nofollow" class="external" title="分享到Facebook">分享到Facebook</a>
		</li>
		<li class="shr-friendfeed">
			<a href="http://www.friendfeed.com/share?title=%E5%AF%B9Random+Image+Widget%E7%9A%84%E4%B8%80%E7%82%B9%E4%BF%AE%E6%94%B9&amp;link=http://jiahu.net/%e5%af%b9random-image-widget%e7%9a%84%e4%b8%80%e7%82%b9%e4%bf%ae%e6%94%b9.htm" rel="nofollow" class="external" title="分享到FriendFeed">分享到FriendFeed</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://jiahu.net/%e5%af%b9random-image-widget%e7%9a%84%e4%b8%80%e7%82%b9%e4%bf%ae%e6%94%b9.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
