<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Smooth scrolling for Script.aculo.us</title>
	<atom:link href="http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/feed/" rel="self" type="application/rss+xml" />
	<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/</link>
	<description>Now there's a man with an open mind: you can feel the breeze from here!</description>
	<lastBuildDate>Fri, 06 Nov 2009 22:05:16 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Justin</title>
		<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1564</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 06 Nov 2009 22:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1564</guid>
		<description>Below is code to add expand the Element.scrollTo to use ths effect directly.

e.g. $(&#039;container&#039;).scrollTo(&#039;child&#039;);

Element.addMethods({
	scrollTo: function(element, child){
		var element = $(element);
		if(arguments.length == 1) {
		  var pos = element.cumulativeOffset();
		  window.scrollTo(pos[0], pos[1]);
		} else {
			Position.prepare();
			container_y = Position.cumulativeOffset($(element))[1]
			element_y = Position.cumulativeOffset($(child))[1]
			new Effect.Scroll(element, {x:0, y:(element_y-container_y)});
			return false;
		}
		return element;
	}
});</description>
		<content:encoded><![CDATA[<p>Below is code to add expand the Element.scrollTo to use ths effect directly.</p>
<p>e.g. $(&#8216;container&#8217;).scrollTo(&#8216;child&#8217;);</p>
<p>Element.addMethods({<br />
	scrollTo: function(element, child){<br />
		var element = $(element);<br />
		if(arguments.length == 1) {<br />
		  var pos = element.cumulativeOffset();<br />
		  window.scrollTo(pos[0], pos[1]);<br />
		} else {<br />
			Position.prepare();<br />
			container_y = Position.cumulativeOffset($(element))[1]<br />
			element_y = Position.cumulativeOffset($(child))[1]<br />
			new Effect.Scroll(element, {x:0, y:(element_y-container_y)});<br />
			return false;<br />
		}<br />
		return element;<br />
	}<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1559</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 01 Jul 2009 20:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1559</guid>
		<description>Thanks Elia,

I did this:


function moveTo(container, element){
  Position.prepare();
  container_y = Position.cumulativeOffset($(container))[1]
  element_y = Position.cumulativeOffset($(element))[1]
  new Effect.Scroll(container, {duration:1, x:0, y:(element_y-container_y)});
  return false;
}


- duration is set to 1 - a faster scroll can be obtained if setting duration below 1 eg. 0.3</description>
		<content:encoded><![CDATA[<p>Thanks Elia,</p>
<p>I did this:</p>
<p>function moveTo(container, element){<br />
  Position.prepare();<br />
  container_y = Position.cumulativeOffset($(container))[1]<br />
  element_y = Position.cumulativeOffset($(element))[1]<br />
  new Effect.Scroll(container, {duration:1, x:0, y:(element_y-container_y)});<br />
  return false;<br />
}</p>
<p>- duration is set to 1 &#8211; a faster scroll can be obtained if setting duration below 1 eg. 0.3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ~Elia</title>
		<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1558</link>
		<dc:creator>~Elia</dc:creator>
		<pubDate>Mon, 29 Jun 2009 15:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1558</guid>
		<description>try passing a &quot;duration&quot; option</description>
		<content:encoded><![CDATA[<p>try passing a &#8220;duration&#8221; option</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1557</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 26 Jun 2009 21:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1557</guid>
		<description>Is it possible to control scroll speed? If yes, could you point to me where?
Thanks and regards :)</description>
		<content:encoded><![CDATA[<p>Is it possible to control scroll speed? If yes, could you point to me where?<br />
Thanks and regards :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sebastian</title>
		<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1474</link>
		<dc:creator>sebastian</dc:creator>
		<pubDate>Mon, 14 Jul 2008 12:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1474</guid>
		<description>no hada el scroll en mozilla firefox =\</description>
		<content:encoded><![CDATA[<p>no hada el scroll en mozilla firefox =\</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: craig</title>
		<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1473</link>
		<dc:creator>craig</dc:creator>
		<pubDate>Fri, 20 Jun 2008 08:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1473</guid>
		<description>for the error below, i think his effects.js is a custom file if i am not mistaken from reading this a while ago</description>
		<content:encoded><![CDATA[<p>for the error below, i think his effects.js is a custom file if i am not mistaken from reading this a while ago</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ~Elia</title>
		<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1466</link>
		<dc:creator>~Elia</dc:creator>
		<pubDate>Tue, 20 May 2008 13:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1466</guid>
		<description>I didn&#039;t used this library lately, so I don&#039;t remeber how to fix that error... have you the page online somewhere?

look also at &lt;a href=&quot;http://mdmsrl.it&quot; rel=&quot;nofollow&quot;&gt;mdmsrl.it&lt;/a&gt; with firebug for an example...</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t used this library lately, so I don&#8217;t remeber how to fix that error&#8230; have you the page online somewhere?</p>
<p>look also at <a href="http://mdmsrl.it" rel="nofollow">mdmsrl.it</a> with firebug for an example&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GreenSun2025</title>
		<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1465</link>
		<dc:creator>GreenSun2025</dc:creator>
		<pubDate>Tue, 20 May 2008 12:48:37 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1465</guid>
		<description>forgot something :

the prototype lib and the scriptaculous lib are loader inside the html head block

and the call of the moveTo() function is inside the html body block</description>
		<content:encoded><![CDATA[<p>forgot something :</p>
<p>the prototype lib and the scriptaculous lib are loader inside the html head block</p>
<p>and the call of the moveTo() function is inside the html body block</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GreenSun2025</title>
		<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1464</link>
		<dc:creator>GreenSun2025</dc:creator>
		<pubDate>Tue, 20 May 2008 12:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1464</guid>
		<description>hello all, i have a stupid question that i need to ask because i&#039;m kind of newbie on javascript programming...

so i&#039;d like to know where i can put the new effect scroll()

i&#039;ve tried to place it inside the scriptaculous effect.js =&gt; no success
i&#039;ve tried to place it inside a new js file inside the html header block =&gt; no succes

everytime i get :

Effect is not defined
moveTo(&quot;listeTarifs&quot;, &quot;femme-coiffure&quot;)main (line 186)
onclick(click clientX=0, clientY=0)main (line 1)
[Break on this error] new Effect.Scroll(container, {x:0, y:(element_y-container_y)});

thx in advance</description>
		<content:encoded><![CDATA[<p>hello all, i have a stupid question that i need to ask because i&#8217;m kind of newbie on javascript programming&#8230;</p>
<p>so i&#8217;d like to know where i can put the new effect scroll()</p>
<p>i&#8217;ve tried to place it inside the scriptaculous effect.js =&gt; no success<br />
i&#8217;ve tried to place it inside a new js file inside the html header block =&gt; no succes</p>
<p>everytime i get :</p>
<p>Effect is not defined<br />
moveTo(&#8220;listeTarifs&#8221;, &#8220;femme-coiffure&#8221;)main (line 186)<br />
onclick(click clientX=0, clientY=0)main (line 1)<br />
[Break on this error] new Effect.Scroll(container, {x:0, y:(element_y-container_y)});</p>
<p>thx in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snackycracky</title>
		<link>http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1456</link>
		<dc:creator>snackycracky</dc:creator>
		<pubDate>Wed, 05 Mar 2008 13:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/#comment-1456</guid>
		<description>awesome!!!!
you saved me hours of work switching to mootools for the scrolling effect.
Thank you very much :)</description>
		<content:encoded><![CDATA[<p>awesome!!!!<br />
you saved me hours of work switching to mootools for the scrolling effect.<br />
Thank you very much :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
