<?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>FVF.me&#039;Ye &#187; 小技巧</title>
	<atom:link href="http://fvf.me/category/wordpress/tips/feed" rel="self" type="application/rss+xml" />
	<link>http://fvf.me</link>
	<description>我是孤独的根号5</description>
	<lastBuildDate>Mon, 19 Sep 2011 12:10:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>下拉列表导航栏</title>
		<link>http://fvf.me/wordpress/tips/wordpress-theme-navigation-bar-of-the-drop-down-list.html</link>
		<comments>http://fvf.me/wordpress/tips/wordpress-theme-navigation-bar-of-the-drop-down-list.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 11:04:25 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[下拉列表]]></category>
		<category><![CDATA[分类]]></category>
		<category><![CDATA[导航栏]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/wordpress-theme-navigation-bar-of-the-drop-down-list.html</guid>
		<description><![CDATA[看到别人的导航栏是下拉列表式的，就只有一个感觉，羡慕。但是我又不想单单为了这个功能去用上一个插件，怎么办呢？自己动手呗！可是在Google上找了很多的导航栏样式，都很漂亮，但漂亮的代价也是沉重的！为了漂亮而付出速度那是不行的！所以找来找去，终于找到了简单的导航栏方法！ 哈哈！其实我想要得就是想在导航栏上加上分类下拉式导航，当然想要加其他的方法都是一样的，就是li里面套li啊，不过对我来说没什么意义！ 先当然是该html代码了，加上分类的导航链接就是在主导航栏ul之下再加也一个li项。 &#60;li class=&#34;cat-item&#34;&#62;&#60;a href=&#34;#&#34;&#62;分类Categories&#60;/a&#62; &#60;ul class=&#34;children&#34;&#62; &#60;?php wp_list_categories(&#39;orderby=name&#38;title_li=&#39;); $this_category = get_category($cat); if (get_category_children($this_category-&#62;cat_ID) != &#34;&#34;) { echo &#34;&#60;/ul&#62;&#60;ul&#62;&#34;; wp_list_categories(&#39;orderby=id&#38;show_count=0&#38;title_li= &#38;use_desc_for_title=1&#38;child_of=&#39;.$this_category-&#62;cat_ID); echo &#34;&#60;/ul&#62;&#34;; } ?&#62; &#60;/li&#62; 接下来就是CSS代码了，这个需要自己调试了。 #nav { } #nav ul { } #nav li { } #nav li a {, } #nav li a:hover { } #nav li ul { } #nav [...]]]></description>
			<content:encoded><![CDATA[<p>看到别人的导航栏是下拉列表式的，就只有一个感觉，羡慕。但是我又不想单单为了这个功能去用上一个插件，怎么办呢？自己动手呗！可是在Google上找了很多的导航栏样式，都很漂亮，但漂亮的代价也是沉重的！为了漂亮而付出速度那是不行的！所以找来找去，终于找到了简单的导航栏方法！</p>
<p>哈哈！其实我想要得就是想在导航栏上加上分类下拉式导航，当然想要加其他的方法都是一样的，就是li里面套li啊，不过对我来说没什么意义！</p>
<p>先当然是该html代码了，加上分类的导航链接就是在主导航栏ul之下再加也一个li项。</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;li</span> <span style="color: rgb(255, 255, 0); ">class=</span><span style="color: rgb(187, 187, 0); ">&quot;cat-item&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;&lt;a</span> <span style="color: rgb(255, 255, 0); ">href=</span><span style="color: rgb(187, 187, 0); ">&quot;#&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><span style="color: rgb(192, 192, 192); ">分类Categories</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/a&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;ul</span> <span style="color: rgb(255, 255, 0); ">class=</span><span style="color: rgb(187, 187, 0); ">&quot;children&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">wp_list_categories</span>(<span style="color: rgb(187, 187, 0); ">&#39;orderby=name&amp;title_li=&#39;</span>);<br /> <span style="color: rgb(204, 204, 0); ">$this_category</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">get_category</span>(<span style="color: rgb(204, 204, 0); ">$cat</span>);<br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(192, 192, 192); ">get_category_children</span>(<span style="color: rgb(204, 204, 0); ">$this_category</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">cat_ID</span>) <span style="color: rgb(192, 192, 192); ">!=</span> <span style="color: rgb(187, 187, 0); ">&quot;&quot;</span>) <span style="color: rgb(192, 192, 192); ">{</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">echo</span> <span style="color: rgb(187, 187, 0); ">&quot;&lt;/ul&gt;&lt;ul&gt;&quot;</span>;<br /> <span style="color: rgb(192, 192, 192); ">wp_list_categories</span>(<span style="color: rgb(187, 187, 0); ">&#39;orderby=id&amp;show_count=0&amp;title_li=</span><br /> <span style="color: rgb(187, 187, 0); ">&amp;use_desc_for_title=1&amp;child_of=&#39;</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(204, 204, 0); ">$this_category</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">cat_ID</span>);<br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">echo</span> <span style="color: rgb(187, 187, 0); ">&quot;&lt;/ul&gt;&quot;</span>;<br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/li&gt;</span></div>
<p>接下来就是CSS代码了，这个需要自己调试了。</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(192, 192, 192); ">{</span><br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span> <span style="color: rgb(192, 192, 192); ">{</span><br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(192, 192, 192); ">{</span><br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">a</span> <span style="color: rgb(192, 192, 192); ">{</span><span style="color: rgb(192, 192, 192); ">,</span><br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">a</span><span style="color: rgb(192, 192, 192); ">:hover</span> <span style="color: rgb(192, 192, 192); ">{</span><br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span> <span style="color: rgb(192, 192, 192); ">{</span><br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(192, 192, 192); ">{</span><br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">a</span> <span style="color: rgb(192, 192, 192); ">{</span><br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">a</span><span style="color: rgb(192, 192, 192); ">:hover</span> <span style="color: rgb(192, 192, 192); ">{</span><br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span><span style="color: rgb(192, 192, 192); ">:hover</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span><span style="color: rgb(192, 192, 192); ">.sfhover</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span> <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">left</span><span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(192, 192, 192); ">-999em</span>;<br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span><span style="color: rgb(192, 192, 192); ">:hover</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span><span style="color: rgb(192, 192, 192); ">:hover</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span><span style="color: rgb(192, 192, 192); ">.sfhover</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(255, 255, 0); ">#nav</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">li</span><span style="color: rgb(192, 192, 192); ">.sfhover</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">ul</span> <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">left</span><span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">auto</span>;<br /> <span style="color: rgb(192, 192, 192); ">}</span></div>
<p>最后就是对万恶的IE6的兼容了，因为IE6中只支持啊a：hover，而不支持其他的：hover，你应当看到上面的css中有一些代码不能运行啊！所以需要Javascript脚本支持。</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(192, 192, 192); ">sfHover</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">function</span>() <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">sfEls</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">document</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">getElementById</span>(<span style="color: rgb(187, 187, 0); ">&quot;nav&quot;</span><span style="color: rgb(192, 192, 192); ">).</span><span style="color: rgb(192, 192, 192); ">getElementsByTagName</span>(<span style="color: rgb(187, 187, 0); ">&quot;LI&quot;</span>);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">for</span> (<span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(192, 192, 192); ">0</span>; <span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">sfels</span> <span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">length</span>; <span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">++</span>) <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">sfEls</span><span style="color: rgb(192, 192, 192); ">[</span><span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">].</span><span style="color: rgb(192, 192, 192); ">onmouseover</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">function</span>() <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">this</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">className</span><span style="color: rgb(192, 192, 192); ">+=</span><span style="color: rgb(187, 187, 0); ">&quot; sfhover&quot;</span>;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">}</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">sfEls</span><span style="color: rgb(192, 192, 192); ">[</span><span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">].</span><span style="color: rgb(192, 192, 192); ">onmouseout</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">function</span>() <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">this</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">className</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">this</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">className</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">replace</span>(<span style="color: rgb(255, 255, 0); font-weight: bold; ">new</span> <span style="color: rgb(192, 192, 192); ">RegExp</span>(<span style="color: rgb(187, 187, 0); ">&quot; sfhover\\b&quot;</span><span style="color: rgb(192, 192, 192); ">),</span> <span style="color: rgb(187, 187, 0); ">&quot;&quot;</span>);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">}</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">}</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">}</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(192, 192, 192); ">window</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">attachEvent</span>) <span style="color: rgb(192, 192, 192); ">window</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">attachEvent</span>(<span style="color: rgb(187, 187, 0); ">&quot;onload&quot;</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(192, 192, 192); ">sfHover</span>);<br /> <span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">/sfels&gt;</span></div>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/wordpress-theme-navigation-bar-of-the-drop-down-list.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 评论添加楼层数(留言编号)</title>
		<link>http://fvf.me/wordpress/tips/comments-add-a-few-floors-wordpress-message-number.html</link>
		<comments>http://fvf.me/wordpress/tips/comments-add-a-few-floors-wordpress-message-number.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 11:02:07 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[楼层数]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/comments-add-a-few-floors-wordpress-message-number.html</guid>
		<description><![CDATA[今天在全力搞评论页也就是comments.php，整个主题之中就属它最麻烦和复杂了！搞得头痛死了！ 我刚刚把普通的评论和trackbacks / pingbacks分开,准备给评论加上楼层数！不懂怎么办！当然是在Google上找喽！找方法当然是找简单的了终于找到了以下的简单方法！ 编辑 comments.php 文件，找到以下评论循环的入口代码： &#60;?php foreach ($comments as $comment) : ?&#62; 在这句代码之前添加： &#60;?php $i=1; ?&#62; //初始化 $i 变量，赋值 1 在需要显示楼层编号的地方，插入以下代码，当然，如何呈现需要可以自定义样式： #&#60;?php echo $i; ?&#62;楼 //输出楼层编号 每次评论循环函数执行后，对 $count 变量进行加 1 操作，因此需找到： &#60;?php endforeach; ?&#62; 在此循环结束之前加入： &#60;?php $i++; ?&#62; //$i 变量自加 1]]></description>
			<content:encoded><![CDATA[<p>今天在全力搞评论页也就是comments.php，整个主题之中就属它最麻烦和复杂了！搞得头痛死了！</p>
<p>我刚刚把普通的评论和trackbacks / pingbacks分开,准备给评论加上楼层数！不懂怎么办！当然是在Google上找喽！找方法当然是找简单的了终于找到了以下的简单方法！</p>
<p>编辑 comments.php 文件，找到以下评论循环的入口代码：</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">foreach</span> (<span style="color: rgb(204, 204, 0); ">$comments</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">as</span> <span style="color: rgb(204, 204, 0); ">$comment</span>) <span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>在这句代码之前添加：</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(204, 204, 0); ">$i</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(192, 192, 192); ">1</span>; <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(192, 192, 192); ">//初始化 $i 变量，赋值 1</span></div>
<p>在需要显示楼层编号的地方，插入以下代码，当然，如何呈现需要可以自定义样式：</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(192, 192, 192); ">#</span><span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">echo</span> <span style="color: rgb(204, 204, 0); ">$i</span>; <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(192, 192, 192); ">楼</span><br /> <span style="color: rgb(192, 192, 192); ">//输出楼层编号</span></div>
<p>每次评论循环函数执行后，对 $count 变量进行加 1 操作，因此需找到：</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">endforeach</span>; <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>在此循环结束之前加入：</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(204, 204, 0); ">$i</span><span style="color: rgb(192, 192, 192); ">++</span>; <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(192, 192, 192); ">//$i 变量自加 1</span></div>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/comments-add-a-few-floors-wordpress-message-number.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>分开显示Trackbacks和评论列表</title>
		<link>http://fvf.me/wordpress/tips/wordpress-separately-trackbacks-pingbacks-list-and-comments.html</link>
		<comments>http://fvf.me/wordpress/tips/wordpress-separately-trackbacks-pingbacks-list-and-comments.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 11:00:22 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[pingbacks]]></category>
		<category><![CDATA[trackbacks]]></category>
		<category><![CDATA[分开]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/wordpress-separately-trackbacks-pingbacks-list-and-comments.html</guid>
		<description><![CDATA[今天在搞主题的评论，准备把普通的评论和trackbacks / pingbacks分开。嘿嘿！在Google上找了好几页，发现了很多方法，挑了最简单的方法啊！就是下面的方法了！ 第一步 在single.php文件中找到 &#60;?php comments_template(&#39;&#39;)?&#62; 改成 &#60;?php comments_template(&#39;&#39;, true); ?&#62; 第二步 在comments.php文件中找到 &#60;?php foreach ($comments as $comment) : ?&#62; 在之后添加以下代码 &#60;?php $comment_type = get_comment_type(); ?&#62; &#60;?php if($comment_type == &#39;comment&#39;) { ?&#62; 第三步 找到 &#60;?php endforeach; ?&#62; 在之前添加以下代码 &#60;?php } else { $trackback = true; } ?&#62; 第四步 找到 &#60;?php else : ?&#62; 在之前添加以下代码 [...]]]></description>
			<content:encoded><![CDATA[<p>今天在搞主题的评论，准备把普通的评论和trackbacks / pingbacks分开。嘿嘿！在Google上找了好几页，发现了很多方法，挑了最简单的方法啊！就是下面的方法了！</p>
<p>第一步</p>
<p>在single.php文件中找到</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comments_template</span>(<span style="color: rgb(187, 187, 0); </p>
<p>">&#39;&#39;</span>)<span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>改成</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comments_template</span>(<span style="color: rgb(187, 187, 0); </p>
<p>">&#39;&#39;</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">true</span>); <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>第二步</p>
<p>在comments.php文件中找到</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">foreach</span> (<span style="color: rgb(204, </p>
<p>204, 0); ">$comments</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">as</span> <span style="color: rgb(204, 204, 0); ">$comment</span>) </p>
<p><span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>在之后添加以下代码</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(204, 204, 0); ">$comment_type</span> <span style="color: rgb(192, 192, 192); </p>
<p>">=</span> <span style="color: rgb(192, 192, 192); ">get_comment_type</span>(); <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>(<span style="color: rgb(204, 204, </p>
<p>0); ">$comment_type</span> <span style="color: rgb(192, 192, 192); ">==</span> <span style="color: rgb(187, 187, 0); ">&#39;comment&#39;</span>) <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>第三步</p>
<p>找到</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">endforeach</span>; <span style="color: rgb</p>
<p>(255, 255, 255); ">?&gt;</span></div>
<p>在之前添加以下代码</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">}</span> <span style="color: rgb(255, 255, 0); font-weight: </p>
<p>bold; ">else</span> <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: rgb(204, 204, 0); ">$trackback</span> <span style="color: rgb(192, </p>
<p>192, 192); ">=</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">true</span>; <span style="color: rgb(192, 192, 192); ">}</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>第四步</p>
<p>找到</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">else</span> <span style="color: rgb(192, 192, </p>
<p>192); ">:</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>在之前添加以下代码</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(204, 204, </p>
<p>0); ">$trackback</span> <span style="color: rgb(192, 192, 192); ">==</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">true</span>) <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: </p>
<p>bold; ">&lt;h3&gt;</span><span style="color: rgb(192, 192, 192); ">Trackbacks</span><span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">&lt;/h3&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;ol&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?</p>
<p>php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">foreach</span> (<span style="color: rgb(204, 204, 0); ">$comments</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">as</span> <span style="color: rgb(204, 204, 0); ">$comment</span>) <span style="color: rgb(192, 192, </p>
<p>192); ">:</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: </p>
<p>rgb(204, 204, 0); ">$comment_type</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); </p>
<p>">get_comment_type</span>(); <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>(<span style="color: rgb(204, 204, 0); ">$comment_type</span> <span style="color: rgb(192, 192, </p>
<p>192); ">!=</span> <span style="color: rgb(187, 187, 0); ">&#39;comment&#39;</span>) <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: </p>
<p>rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;li&gt;</span><span style="color: rgb(255, 255, 255); </p>
<p>">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comment_author_link</span>() <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(255, 255, 255); ">&amp;nbsp;</span><span style="color: rgb(192, 192, 192); ">写于</span><span style="color: rgb(255, 255, 255); </p>
<p>">&amp;nbsp;</span><span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comment_date</span>(<span style="color: rgb(187, 187, 0); ">&#39;Y年m月d日 l&#39;</span>) <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(255, 255, 255); </p>
<p>">&amp;nbsp;</span><span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comment_time</span>() <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(255, 255, 255); ">&lt;?php</span> </p>
<p><span style="color: rgb(192, 192, 192); ">edit_comment_link</span>(<span style="color: rgb(187, 187, 0); ">&#39;编辑&#39;</span><span style="color: rgb(192, </p>
<p>192, 192); ">,</span><span style="color: rgb(187, 187, 0); ">&#39;[&#39;</span><span style="color: rgb(192, 192, 192); ">,</span><span style="color: rgb(187, </p>
<p>187, 0); ">&#39;]&#39;</span>); <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">&lt;/li&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">}</span> <span style="color: </p>
<p>rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">endforeach</span>; <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">&lt;/ol&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">}</span> <span style="color: </p>
<p>rgb(255, 255, 255); ">?&gt;</span></div>
<p>保存，刷新一下就可以看到了trackbacks已不在评论列表中并显示底下！</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/wordpress-separately-trackbacks-pingbacks-list-and-comments.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>超级链接样式</title>
		<link>http://fvf.me/wordpress/tips/wordpress-themes-to-change-the-hyperlink-style.html</link>
		<comments>http://fvf.me/wordpress/tips/wordpress-themes-to-change-the-hyperlink-style.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 10:57:15 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[链接]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/wordpress-themes-to-change-the-hyperlink-style.html</guid>
		<description><![CDATA[现在的效果 超级链接效果 代码如下: &#60;a href=&#34;#&#34; rel=&#34;external&#34;&#62;#&#60;/a&#62; 其实这个我也不是很懂，在群里面一叫，blade童鞋告诉我的。嘿嘿，接下来当然是动手了！ 当然了blade童鞋把别人想得和自己一样高深，其实网上很多人和我一样什么都只懂些皮毛，所以他写的我还是搞不清楚，怎么办呢，我准备找他的时候他人不在线，靠超郁闷 ！（ps：他是29号告诉我的，我是30号开始动手的！） 当然了面对失败不能后退啊！后退了，还不如我当初不问了，让人郁闷！突然别我发现这小子尽然也在用这个方法，哈哈！俗话说的好，写出来的不一定是好的，怎么都得留一 手吧。但是我用FF把他用的给揪出来啊！我查看了他网页源代码发现了一段写在博客上的javascript代码。 &#60;script type=&#34;text/javascript&#34;&#62; function outlinks() { &#160; if (!document.getElementsByTagName) return; &#160;&#160;&#160;&#160;&#160;&#160;&#160; if(! document.getElementById(&#34;postarea&#34;)) return; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var anchors = document.getElementById(&#34;c&#34;).getElementsByTagName(&#34;a&#34;);//仅应用id为c的块内部的 a标签 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (var i=0; i&#60;anchors .length; i++) { &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var anchor = anchors[i]; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (anchor.getAttribute(&#34;href&#34;) &#38;&#38; anchor.getAttribute(&#34;rel&#34;) == &#34;external&#34;){ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#038; nbsp;&#160;&#160;&#160;&#160; anchor.target = &#34;_blank&#34;; [...]]]></description>
			<content:encoded><![CDATA[<p>现在的效果 <a href="#" rel="external">超级链接效果</a> 代码如下:</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;a</span> <span style="color: rgb(255, 255, 0); ">href=</span><span style="color: rgb(187, 187, 0); </p>
<p>">&quot;#&quot;</span> <span style="color: rgb(255, 255, 0); ">rel=</span><span style="color: rgb(187, 187, 0); ">&quot;external&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><span style="color: rgb(192, 192, 192); ">#</span><span style="color: rgb(255, 255, 0); font</p>
<p>-weight: bold; ">&lt;/a&gt;</span></div>
<p>其实这个我也不是很懂，在群里面一叫，blade童鞋告诉我的。嘿嘿，接下来当然是动手了！</p>
<p>当然了blade童鞋把别人想得和自己一样高深，其实网上很多人和我一样什么都只懂些皮毛，所以他写的我还是搞不清楚，怎么办呢，我准备找他的时候他人不在线，靠超郁闷</p>
<p>！（ps：他是29号告诉我的，我是30号开始动手的！）</p>
<p>当然了面对失败不能后退啊！后退了，还不如我当初不问了，让人郁闷！突然别我发现这小子尽然也在用这个方法，哈哈！俗话说的好，写出来的不一定是好的，怎么都得留一</p>
<p>手吧。但是我用FF把他用的给揪出来啊！我查看了他网页源代码发现了一段写在博客上的javascript代码。</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">script</span> <span style="color: rgb(192, 192, 192); </p>
<p>">type</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(187, 187, 0); ">&quot;text/javascript&quot;</span><span style="color: </p>
<p>rgb(192, 192, 192); ">&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">function</span> <span style="color: rgb(192, 192, 192); </p>
<p>">outlinks</span>() <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(192, 192, 192); ">!</span><span style="color: rgb(192, 192, 192); ">document</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">getElementsByTagName</span>) <span style="color: rgb(255, 255, 0); font-weight: bold; ">return</span>; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>(<span style="color: rgb(192, 192, 192); ">!</p>
<p></span><span style="color: rgb(192, 192, 192); ">document</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); </p>
<p>">getElementById</span>(<span style="color: rgb(187, 187, 0); ">&quot;postarea&quot;</span>)) <span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">return</span>;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> </p>
<p><span style="color: rgb(192, 192, 192); ">anchors</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); </p>
<p>">document</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">getElementById</span>(<span style="color: rgb</p>
<p>(187, 187, 0); ">&quot;c&quot;</span><span style="color: rgb(192, 192, 192); ">).</span><span style="color: rgb(192, 192, 192); </p>
<p>">getElementsByTagName</span>(<span style="color: rgb(187, 187, 0); ">&quot;a&quot;</span>);<span style="color: rgb(105, 105, 105); ">//仅应用id为c的块内部的</p>
<p>a标签</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-</p>
<p>weight: bold; ">for</span> (<span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(192, 192, 192); ">0</span>; <span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">anchors</span> <span style="color: rgb(192, 192, 192); </p>
<p>">.</span><span style="color: rgb(192, 192, 192); ">length</span>; <span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); </p>
<p>">++</span>) <span style="color: rgb(192, 192, 192); ">{</span> </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); </p>
<p>font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">anchor</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">anchors</span><span style="color: rgb(192, 192, 192); ">[</span><span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">];</span> </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); </p>
<p>font-weight: bold; ">if</span> (<span style="color: rgb(192, 192, 192); ">anchor</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: </p>
<p>rgb(192, 192, 192); ">getAttribute</span>(<span style="color: rgb(187, 187, 0); ">&quot;href&quot;</span>) <span style="color: rgb(192, 192, 192); </p>
<p>">&amp;&amp;</span> <span style="color: rgb(192, 192, 192); ">anchor</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, </p>
<p>192, 192); ">getAttribute</span>(<span style="color: rgb(187, 187, 0); ">&quot;rel&quot;</span>) <span style="color: rgb(192, 192, 192); ">==</span> <span style="color: rgb(187, 187, 0); ">&quot;external&quot;</span><span style="color: rgb(192, 192, 192); ">){</span> </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#038;</p>
<p>nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">anchor</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: </p>
<p>rgb(192, 192, 192); ">target</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(187, 187, 0); ">&quot;_blank&quot;</span>; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#038;</p>
<p>nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">anchor</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: </p>
<p>rgb(192, 192, 192); ">className</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(187, 187, 0); </p>
<p>">&quot;external&quot;</span>;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, </p>
<p>192, 192); ">}</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">}</span></p>
<p> <span style="color: rgb(192, 192, 192); </p>
<p>">}</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(192, 192, 192); ">window</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">attachEvent</span>) <span style="color: rgb(192, 192, 192); </p>
<p>">window</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">attachEvent</span>(<span style="color: rgb(187, </p>
<p>187, 0); ">&quot;onload&quot;</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(192, 192, 192); ">sfHover</span>);<br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>(<span style="color: rgb(192, 192, 192); ">window</span><span style="color: rgb(192, 192, 192); </p>
<p>">.</span><span style="color: rgb(192, 192, 192); ">attachEvent</span>) <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: rgb(105, 105, </p>
<p>105); ">//ie</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">window</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">attachEvent</span>(<span style="color: rgb(187, 187, 0); ">&quot;onload&quot;</span><span style="color: rgb(192, 192, </p>
<p>192); ">,</span> <span style="color: rgb(192, 192, 192); ">outlinks</span>);<br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: </p>
<p>rgb(255, 255, 0); font-weight: bold; ">else</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>(<span style="color: rgb(192, 192, </p>
<p>192); ">window</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">addEventListener</span>) <span style="color: </p>
<p>rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">window</span><span style="color: rgb(192, 192, 192); </p>
<p>">.</span><span style="color: rgb(192, 192, 192); ">addEventListener</span>(<span style="color: rgb(187, 187, 0); ">&#39;DOMContentLoaded&#39;</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(192, 192, 192); ">outlinks</span><span style="color: rgb(192, 192, 192); ">,</span> </p>
<p><span style="color: rgb(255, 255, 0); font-weight: bold; ">false</span>);<br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb</p>
<p>(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">/script&gt;</span></div>
<p>最下面两个/标签去掉，插件bug啊!然后直接拷贝到我的header.php文件的&lt;/head&gt;上面去.当然了要不这中间的“c”改为自己的文章的id最好是文章栏的id。接下来把</p>
<p>css代码复制到我的style.css中去，就可以了不过我发现他的css代码不好看就把它稍微处理了一下，把后面的背景下调了一下.</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); font-weight: bold; ">a</span><span style="color: rgb(192, 192, 192); ">.external</span> <span style="color: rgb(192, 192, </p>
<p>192); ">{</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">padding</span><span style="color: rgb(192, 192, 192); </p>
<p>">:</span><span style="color: rgb(192, 192, 192); ">0</span> <span style="color: rgb(192, 192, 192); ">12px</span> <span style="color: rgb(192, 192, 192); </p>
<p>">0</span> <span style="color: rgb(192, 192, 192); ">0</span>;<br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">background-</p>
<p>image</span><span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(187, 187, 0); ">url(images/external.png)</span>; </p>
<p>&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">background-repeat</span><span style="color: rgb(192, 192, 192); ">:</span> </p>
<p><span style="color: rgb(255, 255, 0); font-weight: bold; ">no-repeat</span>;<br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">background-position</span><span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">right</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">center</span>;<br /> <span style="color: rgb(192, 192, 192); ">}</span></div>
<p>不过就是使用超级链接的时候麻烦一些，要手动在&lt;a&gt;标签中加入</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(192, 192, 192); ">rel=&quot;external&quot;</span></div>
<p>如果你喜欢我的超级链接的背景的话直接右键复制图片吧!</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/wordpress-themes-to-change-the-hyperlink-style.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>给主题增加滑动效果(gotoup)</title>
		<link>http://fvf.me/wordpress/tips/to-increase-the-sliding-effect-of-the-theme-gotoup.html</link>
		<comments>http://fvf.me/wordpress/tips/to-increase-the-sliding-effect-of-the-theme-gotoup.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 10:50:09 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[down]]></category>
		<category><![CDATA[top]]></category>
		<category><![CDATA[主题]]></category>
		<category><![CDATA[滑动]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e7%bb%99%e4%b8%bb%e9%a2%98%e5%a2%9e%e5%8a%a0%e6%bb%91%e5%8a%a8%e6%95%88%e6%9e%9cgotoup.html</guid>
		<description><![CDATA[今天把导航栏固定了，想起增加滑动效果使之能够滚动到网页上部或下部。嘿嘿！不过在Google那搜索了一下。找了很久还是没找到，后来偶然的情况下发现了 xiaorsz写的文章，不过太复杂了，然后转到了popdo那里。发现这个方法简单！就用了这个方法！我是在footer.php最底下加入这个代码 &#60;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34;&#62; $(document).ready(function(){ &#160; $(&#39;a[href*=#]&#39;).click(function() { &#160;&#160;&#160; if (location.pathname.replace(/^\//,&#39;&#39;) == this.pathname.replace(/^\//,&#39;&#39;) &#160;&#160;&#160; &#38;&#38; location.hostname == this.hostname) { &#160;&#160;&#160;&#160;&#160; var $target = $(this.hash); &#160;&#160;&#160;&#160;&#160; $target = $target.length &#38;&#38; $target &#160;&#160;&#160;&#160;&#160; &#124;&#124; $(&#39;[name=&#39; + this.hash.slice(1) +&#39;]&#39;); &#160;&#160;&#160;&#160;&#160; if ($target.length) { &#160;&#160;&#160;&#160;&#160;&#160;&#160; var targetOffset = $target.offset().top; &#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;html,body&#39;) &#160;&#160;&#160;&#160;&#160;&#160;&#160; .animate({scrollTop: targetOffset}, 1000); &#160;&#160;&#160;&#160;&#160;&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>今天把导航栏固定了，想起增加滑动效果使之能够滚动到网页上部或下部。嘿嘿！不过在Google那搜索了一下。找了很久还是没找到，后来偶然的情况下发现了 xiaorsz写的文章，不过太复杂了，然后转到了popdo那里。发现这个方法简单！就用了这个方法！我是在footer.php最底下加入这个代码</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">script</span> <span style="color: rgb(192, 192, 192); ">type</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(187, 187, 0); ">&quot;text/javascript&quot;</span> <span style="color: rgb(192, 192, 192); ">src</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(187, 187, 0); ">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js&quot;</span><span style="color: rgb(192, 192, 192); ">&gt;&lt;</span><span style="color: rgb(192, 192, 192); ">/script&gt;</span><br /> <span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">script</span> <span style="color: rgb(192, 192, 192); ">type</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(187, 187, 0); ">&quot;text/javascript&quot;</span><span style="color: rgb(192, 192, 192); ">&gt;</span><br /> <span style="color: rgb(192, 192, 192); ">$</span>(<span style="color: rgb(192, 192, 192); ">document</span><span style="color: rgb(192, 192, 192); ">).</span><span style="color: rgb(192, 192, 192); ">ready</span>(<span style="color: rgb(255, 255, 0); font-weight: bold; ">function</span><span style="color: rgb(192, 192, 192); ">(){</span><br /> &nbsp; <span style="color: rgb(192, 192, 192); ">$</span>(<span style="color: rgb(187, 187, 0); ">&#39;a[href*=#]&#39;</span><span style="color: rgb(192, 192, 192); ">).</span><span style="color: rgb(192, 192, 192); ">click</span>(<span style="color: rgb(255, 255, 0); font-weight: bold; ">function</span>() <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(192, 192, 192); ">location</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">pathname</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">replace</span>(<span style="color: rgb(187, 187, 0); ">/^\//</span><span style="color: rgb(192, 192, 192); ">,</span><span style="color: rgb(187, 187, 0); ">&#39;&#39;</span>) <span style="color: rgb(192, 192, 192); ">==</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">this</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">pathname</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">replace</span>(<span style="color: rgb(187, 187, 0); ">/^\//</span><span style="color: rgb(192, 192, 192); ">,</span><span style="color: rgb(187, 187, 0); ">&#39;&#39;</span>)<br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">&amp;&amp;</span> <span style="color: rgb(192, 192, 192); ">location</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">hostname</span> <span style="color: rgb(192, 192, 192); ">==</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">this</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">hostname</span>) <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">$target</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">$</span>(<span style="color: rgb(255, 255, 0); font-weight: bold; ">this</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">hash</span>);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">$target</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">$target</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">length</span> <span style="color: rgb(192, 192, 192); ">&amp;&amp;</span> <span style="color: rgb(192, 192, 192); ">$target</span> <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; || <span style="color: rgb(192, 192, 192); ">$</span>(<span style="color: rgb(187, 187, 0); ">&#39;[name=&#39;</span> <span style="color: rgb(192, 192, 192); ">+</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">this</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">hash</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">slice</span>(<span style="color: rgb(192, 192, 192); ">1</span>) <span style="color: rgb(192, 192, 192); ">+</span><span style="color: rgb(187, 187, 0); ">&#39;]&#39;</span>);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(192, 192, 192); ">$target</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">length</span>) <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">targetOffset</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">$target</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">offset</span><span style="color: rgb(192, 192, 192); ">().</span><span style="color: rgb(192, 192, 192); ">top</span>;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">$</span>(<span style="color: rgb(187, 187, 0); ">&#39;html,body&#39;</span>)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">animate</span><span style="color: rgb(192, 192, 192); ">({</span><span style="color: rgb(192, 192, 192); ">scrollTop</span><span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(192, 192, 192); ">targetOffset</span><span style="color: rgb(192, 192, 192); ">},</span> <span style="color: rgb(192, 192, 192); ">1000</span>);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">return</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">false</span>;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">}</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">}</span><br /> &nbsp; <span style="color: rgb(192, 192, 192); ">});</span></p>
<p> <span style="color: rgb(192, 192, 192); ">});</span><br /> <span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">/script&gt;</span></div>
<p>在页面需要的地方中加入以下代码：(链接方式为#加ID名称)</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;div</span> <span style="color: rgb(255, 255, 0); ">id=</span><span style="color: rgb(187, 187, 0); ">&quot;gotop&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;&lt;a</span> <span style="color: rgb(255, 255, 0); ">href=</span><span style="color: rgb(187, 187, 0); ">&quot;#header&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><span style="color: rgb(192, 192, 192); ">Top</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/a&gt;&lt;/div&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;div</span> <span style="color: rgb(255, 255, 0); ">id=</span><span style="color: rgb(187, 187, 0); ">&quot;godown&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;&lt;a</span> <span style="color: rgb(255, 255, 0); ">href=</span><span style="color: rgb(187, 187, 0); ">&quot;#footer&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><span style="color: rgb(192, 192, 192); ">Down</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/a&gt;&lt;/div&gt;</span></div>
<p>这个代码可以实现留言转向！</p>
<p>接下来就是css了自己写吧，我就不说明了！</p>
<p>当然了还有留言也此有效果,不过在Opera上向上的没有滚动效果，不过还是能够链接过去.</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/to-increase-the-sliding-effect-of-the-theme-gotoup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>导航栏固定位置</title>
		<link>http://fvf.me/wordpress/tips/navigation-bar-fixed-position.html</link>
		<comments>http://fvf.me/wordpress/tips/navigation-bar-fixed-position.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 10:41:21 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[固定]]></category>
		<category><![CDATA[导航栏]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e5%af%bc%e8%88%aa%e6%a0%8f%e5%9b%ba%e5%ae%9a%e4%bd%8d%e7%bd%ae.html</guid>
		<description><![CDATA[今天使用css中的 position:fixed 把header固定在了网页上头，不过万恶的IE6让人郁闷死，这个浏览器不支持 position:fixed ，所以又要找方法把这个问题解决了。什么方法呢，其实我也不是很懂！只是在 &#60;/head&#62;之前加了一段css代码： &#60;head&#62; &#60; ! -–[if !IE 6]&#62; &#60;style type=&#34;text/css&#34;&#62; #head_top{ &#160;&#160;&#160; position:fixed; } &#60;/style&#62; &#60; ![endif]–&#62; &#60;/head&#62; 注：我网页头部iv的id是head_top这样就好了！ 这样只能让主题在ie6上显示正常，不过就是不能固定位置了]]></description>
			<content:encoded><![CDATA[<p>今天使用css中的 position:fixed 把header固定在了网页上头，不过万恶的IE6让人郁闷死，这个浏览器不支持 position:fixed ，所以又要找方法把这个问题解决了。什么方法呢，其实我也不是很懂！只是在 &lt;/head&gt;之前加了一段css代码：</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;head&gt;</span><br /> <span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); "> ! -–[if !IE 6]&gt; </span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;style </span><span style="color: rgb(255, 255, 0); ">type=</span><span style="color: rgb(187, 187, 0); ">&quot;text/css&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><br /> <span style="color: rgb(255, 255, 0); ">#head_top</span><span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">position</span><span style="color: rgb(192, 192, 192); ">:</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">fixed</span>;<br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/style&gt;</span><br /> <span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); "> ![endif]–&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/head&gt;</span></div>
<p>注：我网页头部iv的id是head_top这样就好了！</p>
<p>这样只能让主题在ie6上显示正常，不过就是不能固定位置了 </p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/navigation-bar-fixed-position.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>博客显示QQ签名</title>
		<link>http://fvf.me/wordpress/tips/signed-qq-blog-show.html</link>
		<comments>http://fvf.me/wordpress/tips/signed-qq-blog-show.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 10:36:09 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[QQ]]></category>
		<category><![CDATA[taotao]]></category>
		<category><![CDATA[签名]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e5%8d%9a%e5%ae%a2%e6%98%be%e7%a4%baqq%e7%ad%be%e5%90%8d.html</guid>
		<description><![CDATA[看到我主页上面的留言了没有，其实我是看到虫下米网的标题才发现的，跑到Google上搜索了一遍！发现了一个软件服务，那就是QQ滔滔。 QQ推出的滔滔。你可以在使用网页、QQ机器人、QQ签名、手机四种渠道更新，真正的随时随地！加入代码可以使你的博客显示你的滔滔，就好比微博客一样。 使用方法如下：先去QQ滔滔注册；登录以后在“插件”-“JavaScript插件”得到javascript代码。把它加入到博客文件就可以了！ 具体方法我是查看虫下米的源代码： html代码： &#60;div id=&#34;taotao&#34;&#62; &#60;div id=&#34;description&#34;&#62; &#60;script type=&#34;text/javascript&#34;&#62;var taotao_qq=888888; var taotao_num=1;var taotao_type=0;&#60;/script&#62;&#60;script type=&#34;text/javascript&#34; charset=&#34;utf-8&#34; src=&#34;http://www.taotao.com/js/dkapi.js&#34;&#62;&#60;/script&#62; &#60;/div&#62; &#60;/div&#62; 把888888换成自己的QQ号就行 css代码： #taotao{font-size:11px;} #description table{display:none;} /*消除description的table*/ #description{ padding:0 5px; width:440px; /*这个自己调*/}]]></description>
			<content:encoded><![CDATA[<p>看到我主页上面的留言了没有，其实我是看到虫下米网的标题才发现的，跑到Google上搜索了一遍！发现了一个软件服务，那就是QQ滔滔。</p>
<p>QQ推出的滔滔。你可以在使用网页、QQ机器人、QQ签名、手机四种渠道更新，真正的随时随地！加入代码可以使你的博客显示你的滔滔，就好比微博客一样。</p>
<p>使用方法如下：先去QQ滔滔注册；登录以后在“插件”-“JavaScript插件”得到javascript代码。把它加入到博客文件就可以了！</p>
<p>具体方法我是查看虫下米的源代码：</p>
<p>html代码：</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;div</span> <span style="color: rgb(255, 255, 0); ">id=</span><span style="color: rgb(187, 187, 0); ">&quot;taotao&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;div</span> <span style="color: rgb(255, 255, 0); ">id=</span><span style="color: rgb(187, 187, 0); ">&quot;description&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;script </span><span style="color: rgb(255, 255, 0); ">type=</span><span style="color: rgb(187, 187, 0); ">&quot;text/javascript&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">taotao_qq</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(192, 192, 192); ">888888</span>; <span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">taotao_num</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(192, 192, 192); ">1</span>;<span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">taotao_type</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(192, 192, 192); ">0</span>;<span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/script&gt;&lt;script </span><span style="color: rgb(255, 255, 0); ">type=</span><span style="color: rgb(187, 187, 0); ">&quot;text/javascript&quot;</span> <span style="color: rgb(255, 255, 0); ">charset=</span><span style="color: rgb(187, 187, 0); ">&quot;utf-8&quot;</span> <span style="color: rgb(255, 255, 0); ">src=</span><span style="color: rgb(187, 187, 0); ">&quot;http://www.taotao.com/js/dkapi.js&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;&lt;/script&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/div&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/div&gt;</span></div>
<p>把888888换成自己的QQ号就行</p>
<p>css代码：</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); ">#taotao</span><span style="color: rgb(192, 192, 192); ">{</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">font-size</span><span style="color: rgb(192, 192, 192); ">:</span><span style="color: rgb(192, 192, 192); ">11px</span><span style="color: rgb(192, 192, 192); ">;}</span><br /> <span style="color: rgb(255, 255, 0); ">#description</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">table</span><span style="color: rgb(192, 192, 192); ">{</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">display</span><span style="color: rgb(192, 192, 192); ">:</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">none</span><span style="color: rgb(192, 192, 192); ">;}</span><br /> <span style="color: rgb(105, 105, 105); ">/*消除description的table*/</span><br /> <span style="color: rgb(255, 255, 0); ">#description</span><span style="color: rgb(192, 192, 192); ">{</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">padding</span><span style="color: rgb(192, 192, 192); ">:</span><span style="color: rgb(192, 192, 192); ">0</span> <span style="color: rgb(192, 192, 192); ">5px</span>; <span style="color: rgb(255, 255, 0); font-weight: bold; ">width</span><span style="color: rgb(192, 192, 192); ">:</span><span style="color: rgb(192, 192, 192); ">440px</span>; <span style="color: rgb(105, 105, 105); ">/*这个自己调*/</span><span style="color: rgb(192, 192, 192); ">}</span></div>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/signed-qq-blog-show.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>禁用post revision(文章修改历史)</title>
		<link>http://fvf.me/wordpress/tips/disable-the-post-revision-the-revision-of-history-article.html</link>
		<comments>http://fvf.me/wordpress/tips/disable-the-post-revision-the-revision-of-history-article.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:51:44 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[post revision]]></category>
		<category><![CDATA[修改历史]]></category>
		<category><![CDATA[禁用]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e7%a6%81%e7%94%a8post-revision%e6%96%87%e7%ab%a0%e4%bf%ae%e6%94%b9%e5%8e%86%e5%8f%b2.html</guid>
		<description><![CDATA[wordpress每修改或发表一篇文章时，都会产生一条revision的记录，可能是为了实现文章的历史版本控制吧，但我觉得对于个人博客来说，这个功能完全没有必要。而且随着时间的发展数据库会越来越大。 禁用Post Revisions的方法： 在wp-config.php文件中增加一行define('WP_POST_REVISIONS', false);]]></description>
			<content:encoded><![CDATA[<p>wordpress每修改或发表一篇文章时，都会产生一条revision的记录，可能是为了实现文章的历史版本控制吧，但我觉得对于个人博客来说，这个功能完全没有必要。而且随着时间的发展数据库会越来越大。 禁用Post Revisions的方法： 在wp-config.php文件中增加一行
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(192, 192, 192); ">define(&#39;WP_POST_REVISIONS&#39;, false);</span></div>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/disable-the-post-revision-the-revision-of-history-article.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress放到单独它单独目录下</title>
		<link>http://fvf.me/wordpress/tips/wordpress-separate-it-into-separate-directory.html</link>
		<comments>http://fvf.me/wordpress/tips/wordpress-separate-it-into-separate-directory.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:46:25 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[单独目录]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/wordpress%e6%94%be%e5%88%b0%e5%8d%95%e7%8b%ac%e5%ae%83%e5%8d%95%e7%8b%ac%e7%9b%ae%e5%bd%95%e4%b8%8b.html</guid>
		<description><![CDATA[因为我的博客程序放在wordpress文件下面的不是放在网站根目录下的。所以就要转移啊！ 把WordPress放到单独它单独目录下的程序如下： 1、新建一个用来存放WordPress核心文件的新文件夹（本例以/wordpress示范）。 2、进入选项（options）面板。 3、找到WordPress address (URL)（中文用户请查找”WordPress 地址（URL）“）这个选项：把后面的地址改成你存放WordPress文件的文件夹地址。比如：http://example.com/wordpress 4、找到Blog address (URL)（中文用户请查找”Blog 地址（URL）“）这个选项：把此地址改为你网站的根目录的URL。例如：http://example.com 5、点击Update Options（中文用户为”更新设置“）。 6、把WordPress的核心文件转移到你新建的文件夹中，也就是WordPress address (URL)这个目录。还不明白？在明确一点：/wordpress目录。 7、把index.php和.htaccess文件从WordPress目录转移到根目录（即Blog address）中。 8、用文本编辑器打开并编辑根目录下”index.php”这个文件。 9、找到如下代码，修改并保存：找到 require(&#39;./wp-blog-header.php&#39;); 把地址改为你WordPress目录下的文件： require(&#39;./wordpress/wp-blog-header.php&#39;); 10、登陆控制面板，新的控制面板地址为http://example.com/wordpress/wp-admin/ 11、如果你设置了结构化链接地址（Permalinks），打开永久链接选 项面板更新Permalinks结构。如果.htaccess有正确的权限设置的话WordPress会自动更新你的.htaccess文件。如果 WordPress不能写入你的.htaccess文件，就会显示新的rewrite规则，因此你就需要手动把rewrite规则复制到. htaccess文件中（和index.php同目录）。 原文地址：http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory 译文也同时发布于WordPress中文文档中。 以前我的WordPress也安装在根目录，但今天按照操作改到了子目录中，根目录就变得清爽多了。注意操作步骤要严格按照这上面的来，每布的顺序不要弄错，否则你可能就进不了后台，或者页面无法打开。而一旦出现那些问题就只能手动修改数据库了。]]></description>
			<content:encoded><![CDATA[<p>因为我的博客程序放在wordpress文件下面的不是放在网站根目录下的。所以就要转移啊！</p>
<p>把WordPress放到单独它单独目录下的程序如下：</p>
<p>1、新建一个用来存放WordPress核心文件的新文件夹（本例以/wordpress示范）。</p>
<p>2、进入选项（options）面板。</p>
<p>3、找到WordPress address (URL<strong>)</strong>（中文用户请查找”WordPress 地址（URL）“）这个选项：把后面的地址改成你存放WordPress文件的文件夹地址。比如：http://example.com/wordpress</p>
<p>4、找到Blog address (URL)（中文用户请查找”Blog 地址（URL）“）这个选项：把此地址改为你网站的根目录的URL。例如：http://example.com</p>
<p>5、点击Update Options（中文用户为”更新设置“）。</p>
<p>6、把WordPress的核心文件转移到你新建的文件夹中，也就是WordPress address (URL)这个目录。还不明白？在明确一点：/wordpress目录。</p>
<p>7、把index.php和.htaccess文件从WordPress目录转移到根目录（即Blog address）中。</p>
<p>8、用文本编辑器打开并编辑根目录下”index.php”这个文件。</p>
<p>9、找到如下代码，修改并保存：找到</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(192, 192, 192); ">require(&#39;./wp-blog-header.php&#39;);</span></div>
<p>把地址改为你WordPress目录下的文件：</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(192, 192, 192); ">require(&#39;./wordpress/wp-blog-header.php&#39;);</span></div>
<p>10、登陆控制面板，新的控制面板地址为<a href="http://example.com/wordpress/wp-admin/">http://example.com/wordpress/wp-admin/</a></p>
<p>11、如果你设置了结构化链接地址（Permalinks），打开永久链接选 项面板更新Permalinks结构。如果.htaccess有正确的权限设置的话WordPress会自动更新你的.htaccess文件。如果 WordPress不能写入你的.htaccess文件，就会显示新的rewrite规则，因此你就需要手动把rewrite规则复制到. htaccess文件中（和index.php同目录）。</p>
<p>原文地址：<a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory</a></p>
<p>译文也同时发布于<a href="http://codex.wordpress.org.cn/index.php?title=Giving_WordPress_Its_Own_Directory">WordPress中文文档</a>中。</p>
<p>以前我的WordPress也安装在根目录，但今天按照操作改到了子目录中，根目录就变得清爽多了。注意操作步骤要严格按照这上面的来，每布的顺序不要弄错，否则你可能就进不了后台，或者页面无法打开。而一旦出现那些问题就只能手动修改数据库了。</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/wordpress-separate-it-into-separate-directory.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>显示当前时间</title>
		<link>http://fvf.me/wordpress/tips/displays-the-current-time.html</link>
		<comments>http://fvf.me/wordpress/tips/displays-the-current-time.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:41:31 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[时间]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e6%98%be%e7%a4%ba%e5%bd%93%e5%89%8d%e6%97%b6%e9%97%b4.html</guid>
		<description><![CDATA[给wordpress博客加上时间，其实很简单，简单的几行代码就行了，你可以在你想要加的地方加入就可以了. &#60;?php &#160;&#160;&#160; $hourdiff = &#34;0&#34;; /* time difference, ex: &#34;-8&#34; or "8" */ &#160;&#160;&#160; $timeadjust = ($hourdiff * 60 * 60); &#160;&#160;&#160; $melbdate = date(&#34;Y年m月d日 H:i&#34;,time() + $timeadjust); &#160;&#160;&#160; print (&#34;$melbdate&#34;); ?&#62; 当然了也可以在前面套上 &#60;div&#62;&#60;/div&#62;标签，方便用css控制，关于时间的调节，国内主机可以设置为 $hourdiff = &#34;0&#34; 这其中的&#34;0&#34;就是用来调节时区的，很简单，要是不知道所在时区，多该几次就知道]]></description>
			<content:encoded><![CDATA[<p>给wordpress博客加上时间，其实很简单，简单的几行代码就行了，你可以在你想要加的地方加入就可以了.</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(204, 204, 0); ">$hourdiff</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(187, 187, 0); ">&quot;0&quot;</span>; <span style="color: rgb(105, 105, 105); ">/* time difference, ex: &quot;-8&quot; or "8" */</span> <br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(204, 204, 0); ">$timeadjust</span> <span style="color: rgb(192, 192, 192); ">=</span> (<span style="color: rgb(204, 204, 0); ">$hourdiff</span> <span style="color: rgb(192, 192, 192); ">*</span> <span style="color: rgb(192, 192, 192); ">60</span> <span style="color: rgb(192, 192, 192); ">*</span> <span style="color: rgb(192, 192, 192); ">60</span>); <br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(204, 204, 0); ">$melbdate</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">date</span>(<span style="color: rgb(187, 187, 0); ">&quot;Y年m月d日 H:i&quot;</span><span style="color: rgb(192, 192, 192); ">,</span><span style="color: rgb(192, 192, 192); ">time</span>() <span style="color: rgb(192, 192, 192); ">+</span> <span style="color: rgb(204, 204, 0); ">$timeadjust</span>); <br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">print</span> (<span style="color: rgb(187, 187, 0); ">&quot;</span><span style="color: rgb(187, 187, 0); ">$melbdate</span><span style="color: rgb(187, 187, 0); ">&quot;</span>); <br /> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>当然了也可以在前面套上 &lt;div&gt;&lt;/div&gt;标签，方便用css控制，关于时间的调节，国内主机可以设置为 $hourdiff = &quot;0&quot; 这其中的&quot;0&quot;就是用来调节时区的，很简单，要是不知道所在时区，多该几次就知道</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/displays-the-current-time.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

