<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>《jQuery:Scrolltop滑动插件推荐（修正注释版）》的评论</title>
	<atom:link href="http://www.ihiro.org/jquery-scrolltop-plugins/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ihiro.org/jquery-scrolltop-plugins</link>
	<description></description>
	<lastBuildDate>Mon, 09 Jan 2012 10:30:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>作者：ie6飘过</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-2727</link>
		<dc:creator>ie6飘过</dc:creator>
		<pubDate>Sat, 13 Nov 2010 03:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-2727</guid>
		<description>IE6确实不兼容，没效果</description>
		<content:encoded><![CDATA[<p>IE6确实不兼容，没效果</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：jQuery:Scrolltop滑动到顶部插件 &#187; WhyJQuery</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-2609</link>
		<dc:creator>jQuery:Scrolltop滑动到顶部插件 &#187; WhyJQuery</dc:creator>
		<pubDate>Thu, 16 Sep 2010 09:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-2609</guid>
		<description>[...] 原文地址:&#160;http://www.ihiro.org/jquery-scrolltop-plugins [...]</description>
		<content:encoded><![CDATA[<p>[...] 原文地址:&nbsp;<a href="http://www.ihiro.org/jquery-scrolltop-plugins" rel="nofollow">http://www.ihiro.org/jquery-scrolltop-plugins</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Hiro</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-2569</link>
		<dc:creator>Hiro</dc:creator>
		<pubDate>Wed, 01 Sep 2010 09:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-2569</guid>
		<description>请转而使用：http://www.ihiro.org/plugins-garden/scrolltop-plugin，更加简单（我写的）！</description>
		<content:encoded><![CDATA[<p>请转而使用：http://www.ihiro.org/plugins-garden/scrolltop-plugin，更加简单（我写的）！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：kiakia</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-2568</link>
		<dc:creator>kiakia</dc:creator>
		<pubDate>Wed, 01 Sep 2010 09:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-2568</guid>
		<description>我想在我的博客里添加这个插件，但总是不成功~~可以帮我解决一下吗？？</description>
		<content:encoded><![CDATA[<p>我想在我的博客里添加这个插件，但总是不成功~~可以帮我解决一下吗？？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：River</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-2093</link>
		<dc:creator>River</dc:creator>
		<pubDate>Tue, 11 May 2010 10:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-2093</guid>
		<description>ie6下如果加了防抖的css怎么办，还有你的demo在ie6下没效果</description>
		<content:encoded><![CDATA[<p>ie6下如果加了防抖的css怎么办，还有你的demo在ie6下没效果</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：阿四</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-1881</link>
		<dc:creator>阿四</dc:creator>
		<pubDate>Sat, 17 Apr 2010 15:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-1881</guid>
		<description>網主您好，我照著網主的方法試了多遍，但卻貌似不太行，可能是我太菜鳥，弄來弄去都總沒能成功 @_@</description>
		<content:encoded><![CDATA[<p>網主您好，我照著網主的方法試了多遍，但卻貌似不太行，可能是我太菜鳥，弄來弄去都總沒能成功 @_@</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Hiro</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-1860</link>
		<dc:creator>Hiro</dc:creator>
		<pubDate>Thu, 15 Apr 2010 04:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-1860</guid>
		<description>首先margin:0 auto;重复，其次你若要把back-to-top链接靠960px的右下角，你需要将#wrapper { position;relative;}这样back-to-top链接才可以相对他居右下角！！</description>
		<content:encoded><![CDATA[<p>首先margin:0 auto;重复，其次你若要把back-to-top链接靠960px的右下角，你需要将#wrapper { position;relative;}这样back-to-top链接才可以相对他居右下角！！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：阿四</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-1859</link>
		<dc:creator>阿四</dc:creator>
		<pubDate>Thu, 15 Apr 2010 04:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-1859</guid>
		<description>您好，我試過跟上面的方法修改了，但卻沒能控制在950px，不知是不是我的css內寫法不對呢？我的css是這樣寫的：
#wrapper { margin:0 auto; width: 950px;	margin:0 auto; padding:0; }
請問是不是我的寫法不對呢？</description>
		<content:encoded><![CDATA[<p>您好，我試過跟上面的方法修改了，但卻沒能控制在950px，不知是不是我的css內寫法不對呢？我的css是這樣寫的：<br />
#wrapper { margin:0 auto; width: 950px;	margin:0 auto; padding:0; }<br />
請問是不是我的寫法不對呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Hiro</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-1802</link>
		<dc:creator>Hiro</dc:creator>
		<pubDate>Thu, 08 Apr 2010 09:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-1802</guid>
		<description>将init方法里的.appendTo(&#039;body&#039;)改为.appendTo($(&#039;#wrapper&#039;)).然后用css控制位置即可！！</description>
		<content:encoded><![CDATA[<p>将init方法里的.appendTo(&#8216;body&#8217;)改为.appendTo($(&#8216;#wrapper&#8217;)).然后用css控制位置即可！！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：阿四</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-1801</link>
		<dc:creator>阿四</dc:creator>
		<pubDate>Thu, 08 Apr 2010 04:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-1801</guid>
		<description>請問這個滑動的&lt;a href=&quot;#top&quot; rel=&quot;nofollow&quot;&gt;back-to-top&lt;/a&gt;字樣能否控制在950px的範圍內？因為我的blog是950px，這個字卻隨解析度屏寬而伸開到右下角，如果能做到950px內會比較理想點^_^</description>
		<content:encoded><![CDATA[<p>請問這個滑動的<a href="#top" rel="nofollow">back-to-top</a>字樣能否控制在950px的範圍內？因為我的blog是950px，這個字卻隨解析度屏寬而伸開到右下角，如果能做到950px內會比較理想點^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：李先生</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-1716</link>
		<dc:creator>李先生</dc:creator>
		<pubDate>Tue, 30 Mar 2010 05:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-1716</guid>
		<description>收藏</description>
		<content:encoded><![CDATA[<p>收藏</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：插件:我的第一个插件&#8211;简约的scrollTop插件 ---- Hiro&#39;s Blog</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-960</link>
		<dc:creator>插件:我的第一个插件&#8211;简约的scrollTop插件 ---- Hiro&#39;s Blog</dc:creator>
		<pubDate>Mon, 02 Nov 2009 14:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-960</guid>
		<description>[...] 周末无事，便写了一个简约的scrollTop插件。在前面的文章（jQuery:Scrolltop滑动插件推荐（修正注释版））中，我曾介绍过一款我在网络收集的相关插件。但发现该作者的代码确实很繁琐，不是很优雅。而我的该scrollTop插件代码就那么十多行，代码非常简单，也非常实用，适合大众使用！呵呵&#8230;. [...]</description>
		<content:encoded><![CDATA[<p>[...] 周末无事，便写了一个简约的scrollTop插件。在前面的文章（jQuery:Scrolltop滑动插件推荐（修正注释版））中，我曾介绍过一款我在网络收集的相关插件。但发现该作者的代码确实很繁琐，不是很优雅。而我的该scrollTop插件代码就那么十多行，代码非常简单，也非常实用，适合大众使用！呵呵&#8230;. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：漠海孤烟</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-498</link>
		<dc:creator>漠海孤烟</dc:creator>
		<pubDate>Wed, 02 Sep 2009 00:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-498</guid>
		<description>这插件还是有用处的，不错。嘿嘿，偶做前端的，难得见到做JQ，多交流</description>
		<content:encoded><![CDATA[<p>这插件还是有用处的，不错。嘿嘿，偶做前端的，难得见到做JQ，多交流</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Hobo</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-459</link>
		<dc:creator>Hobo</dc:creator>
		<pubDate>Fri, 28 Aug 2009 02:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-459</guid>
		<description>不错啊呵呵，这样帮助了很多人，对刚学习jQuery的人也很有好处啊。</description>
		<content:encoded><![CDATA[<p>不错啊呵呵，这样帮助了很多人，对刚学习jQuery的人也很有好处啊。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：DeepBlue</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-434</link>
		<dc:creator>DeepBlue</dc:creator>
		<pubDate>Mon, 24 Aug 2009 13:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-434</guid>
		<description>这个问题，我后来在mg12的主页上看到了相关代码介绍：

JavaScript 代码:


 * 回到页面顶部
 * @param acceleration 加速度
 * @param time 时间间隔 (毫秒)
 **/
function goTop(acceleration, time) {
	acceleration = acceleration &#124;&#124; 0.1;
	time = time &#124;&#124; 16;
 
	var x1 = 0;
	var y1 = 0;
	var x2 = 0;
	var y2 = 0;
	var x3 = 0;
	var y3 = 0;
 
	if (document.documentElement) {
		x1 = document.documentElement.scrollLeft &#124;&#124; 0;
		y1 = document.documentElement.scrollTop &#124;&#124; 0;
	}
	if (document.body) {
		x2 = document.body.scrollLeft &#124;&#124; 0;
		y2 = document.body.scrollTop &#124;&#124; 0;
	}
	var x3 = window.scrollX &#124;&#124; 0;
	var y3 = window.scrollY &#124;&#124; 0;
 
	// 滚动条到页面顶部的水平距离
	var x = Math.max(x1, Math.max(x2, x3));
	// 滚动条到页面顶部的垂直距离
	var y = Math.max(y1, Math.max(y2, y3));
 
	// 滚动距离 = 目前距离 / 速度, 因为距离原来越小, 速度是大于 1 的数, 所以滚动距离会越来越小
	var speed = 1 + acceleration;
	window.scrollTo(Math.floor(x / speed), Math.floor(y / speed));
 
	// 如果距离不为零, 继续调用迭代本函数
	if(x &gt; 0 &#124;&#124; y &gt; 0) {
		var invokeFunction = &quot;goTop(&quot; + acceleration + &quot;, &quot; + time + &quot;)&quot;;
		window.setTimeout(invokeFunction, time);
	}
}
document.documentElement.scrollTop, document.body.scrollTop, window.scrollY 其实都是一样的, 但它们只在某些浏览器中起作用. 至于那哪个在哪些浏览器起作用可以自己调试一下.

HTML 代码:

1
&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;TOP&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>这个问题，我后来在mg12的主页上看到了相关代码介绍：</p>
<p>JavaScript 代码:</p>
<p> * 回到页面顶部<br />
 * @param acceleration 加速度<br />
 * @param time 时间间隔 (毫秒)<br />
 **/<br />
function goTop(acceleration, time) {<br />
	acceleration = acceleration || 0.1;<br />
	time = time || 16;</p>
<p>	var x1 = 0;<br />
	var y1 = 0;<br />
	var x2 = 0;<br />
	var y2 = 0;<br />
	var x3 = 0;<br />
	var y3 = 0;</p>
<p>	if (document.documentElement) {<br />
		x1 = document.documentElement.scrollLeft || 0;<br />
		y1 = document.documentElement.scrollTop || 0;<br />
	}<br />
	if (document.body) {<br />
		x2 = document.body.scrollLeft || 0;<br />
		y2 = document.body.scrollTop || 0;<br />
	}<br />
	var x3 = window.scrollX || 0;<br />
	var y3 = window.scrollY || 0;</p>
<p>	// 滚动条到页面顶部的水平距离<br />
	var x = Math.max(x1, Math.max(x2, x3));<br />
	// 滚动条到页面顶部的垂直距离<br />
	var y = Math.max(y1, Math.max(y2, y3));</p>
<p>	// 滚动距离 = 目前距离 / 速度, 因为距离原来越小, 速度是大于 1 的数, 所以滚动距离会越来越小<br />
	var speed = 1 + acceleration;<br />
	window.scrollTo(Math.floor(x / speed), Math.floor(y / speed));</p>
<p>	// 如果距离不为零, 继续调用迭代本函数<br />
	if(x &gt; 0 || y &gt; 0) {<br />
		var invokeFunction = “goTop(” + acceleration + “, ” + time + “)”;<br />
		window.setTimeout(invokeFunction, time);<br />
	}<br />
}<br />
document.documentElement.scrollTop, document.body.scrollTop, window.scrollY 其实都是一样的, 但它们只在某些浏览器中起作用. 至于那哪个在哪些浏览器起作用可以自己调试一下.</p>
<p>HTML 代码:</p>
<p>1<br />
<a href="#" rel="nofollow">TOP</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Blinux</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-427</link>
		<dc:creator>Blinux</dc:creator>
		<pubDate>Mon, 24 Aug 2009 01:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-427</guid>
		<description>现在jQuery很流行啊</description>
		<content:encoded><![CDATA[<p>现在jQuery很流行啊</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：bolo</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-426</link>
		<dc:creator>bolo</dc:creator>
		<pubDate>Sun, 23 Aug 2009 01:52:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-426</guid>
		<description>厉害,注释了插件</description>
		<content:encoded><![CDATA[<p>厉害,注释了插件</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：小强</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-425</link>
		<dc:creator>小强</dc:creator>
		<pubDate>Sat, 22 Aug 2009 14:16:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-425</guid>
		<description>学习一下 哦</description>
		<content:encoded><![CDATA[<p>学习一下 哦</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：数数</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-424</link>
		<dc:creator>数数</dc:creator>
		<pubDate>Sat, 22 Aug 2009 11:24:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-424</guid>
		<description>学习了学习了~话说我主题里也有这个效果，但是研究半天没弄出来就直接#footer了。。。</description>
		<content:encoded><![CDATA[<p>学习了学习了~话说我主题里也有这个效果，但是研究半天没弄出来就直接#footer了。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：小强</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-423</link>
		<dc:creator>小强</dc:creator>
		<pubDate>Fri, 21 Aug 2009 14:29:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-423</guid>
		<description>学习一哈</description>
		<content:encoded><![CDATA[<p>学习一哈</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Hiro</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-421</link>
		<dc:creator>Hiro</dc:creator>
		<pubDate>Fri, 21 Aug 2009 12:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-421</guid>
		<description>这就叫萝卜青菜，各有所爱吧！我也比较喜欢简单点的！</description>
		<content:encoded><![CDATA[<p>这就叫萝卜青菜，各有所爱吧！我也比较喜欢简单点的！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Hiro</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-420</link>
		<dc:creator>Hiro</dc:creator>
		<pubDate>Fri, 21 Aug 2009 12:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-420</guid>
		<description>大家多多交流就会进步了！！</description>
		<content:encoded><![CDATA[<p>大家多多交流就会进步了！！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：蛋王</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-419</link>
		<dc:creator>蛋王</dc:creator>
		<pubDate>Fri, 21 Aug 2009 11:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-419</guid>
		<description>哈，学习了。
不过我还是喜欢你博客用的，一个锚点，简单又方便，都不用js。
滚回去还是直接回去，对我来说没啥差别。</description>
		<content:encoded><![CDATA[<p>哈，学习了。<br />
不过我还是喜欢你博客用的，一个锚点，简单又方便，都不用js。<br />
滚回去还是直接回去，对我来说没啥差别。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：老饕</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-418</link>
		<dc:creator>老饕</dc:creator>
		<pubDate>Fri, 21 Aug 2009 10:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-418</guid>
		<description>呵呵，努力学习中！</description>
		<content:encoded><![CDATA[<p>呵呵，努力学习中！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：keelii</title>
		<link>http://www.ihiro.org/jquery-scrolltop-plugins/comment-page-1#comment-417</link>
		<dc:creator>keelii</dc:creator>
		<pubDate>Fri, 21 Aug 2009 10:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ihiro.org/?p=470#comment-417</guid>
		<description>又沙发了哈。JQuery要向你看齐。</description>
		<content:encoded><![CDATA[<p>又沙发了哈。JQuery要向你看齐。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
