<?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; top</title>
	<atom:link href="http://fvf.me/tag/top/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.1</generator>
		<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>
	</channel>
</rss>

