<?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:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Introducing MooTools&#160;ScrollSpy</title> <atom:link href="http://davidwalsh.name/mootools-scrollspy/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/mootools-scrollspy</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 09:28:55 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: David Walsh</title><link>http://davidwalsh.name/mootools-scrollspy/comment-page-1#comment-26210</link> <dc:creator>David Walsh</dc:creator> <pubDate>Sun, 24 Jul 2011 21:00:27 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2232#comment-26210</guid> <description>There&#039;s a new version available, BTW:  https://github.com/darkwing/ScrollSpy/blob/master/Source/ScrollSpy.js</description> <content:encoded><![CDATA[<p>There&#8217;s a new version available, BTW: <a
href="https://github.com/darkwing/ScrollSpy/blob/master/Source/ScrollSpy.js" rel="nofollow">https://github.com/darkwing/ScrollSpy/blob/master/Source/ScrollSpy.js</a></p> ]]></content:encoded> </item> <item><title>By: Daniel Ritter</title><link>http://davidwalsh.name/mootools-scrollspy/comment-page-1#comment-26207</link> <dc:creator>Daniel Ritter</dc:creator> <pubDate>Sun, 24 Jul 2011 19:46:44 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2232#comment-26207</guid> <description>Thank you Simon André!&lt;code&gt;
/* fix max */
if(this.max == 0)
{
var ss = this.container.getScrollSize();
this.options.max = this.options.mode == &#039;vertical&#039; ? ss.y : ss.x;
this.max = this.options.max;
}
&lt;/code&gt;was the solution.</description> <content:encoded><![CDATA[<p>Thank you Simon André!</p><p><code><br
/> /* fix max */<br
/> if(this.max == 0)<br
/> {<br
/> var ss = this.container.getScrollSize();<br
/> this.options.max = this.options.mode == 'vertical' ? ss.y : ss.x;<br
/> this.max = this.options.max;<br
/> }<br
/> </code></p><p>was the solution.</p> ]]></content:encoded> </item> <item><title>By: Daniel Ritter</title><link>http://davidwalsh.name/mootools-scrollspy/comment-page-1#comment-26205</link> <dc:creator>Daniel Ritter</dc:creator> <pubDate>Sun, 24 Jul 2011 17:38:40 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2232#comment-26205</guid> <description>It doesn&#039;t work on my website. I have mootools 1.3.5. Could somebody get it work with mootools 1.3.5?</description> <content:encoded><![CDATA[<p>It doesn&#8217;t work on my website. I have mootools 1.3.5. Could somebody get it work with mootools 1.3.5?</p> ]]></content:encoded> </item> <item><title>By: Daniel Irmler</title><link>http://davidwalsh.name/mootools-scrollspy/comment-page-1#comment-23474</link> <dc:creator>Daniel Irmler</dc:creator> <pubDate>Wed, 13 Apr 2011 03:17:20 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2232#comment-23474</guid> <description>Love this plugin! Hey I am working on a site and would like to as you scroll down change not just the background color but also the background image is this possible using this plugin (As shown in example #3). Just wanted to see if their were some code gurus out there who know how to make this happen. THANKS!</description> <content:encoded><![CDATA[<p>Love this plugin! Hey I am working on a site and would like to as you scroll down change not just the background color but also the background image is this possible using this plugin (As shown in example #3). Just wanted to see if their were some code gurus out there who know how to make this happen. THANKS!</p> ]]></content:encoded> </item> <item><title>By: Philip Dahl</title><link>http://davidwalsh.name/mootools-scrollspy/comment-page-1#comment-23449</link> <dc:creator>Philip Dahl</dc:creator> <pubDate>Sun, 10 Apr 2011 23:28:31 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2232#comment-23449</guid> <description>This is great! there is so much potential for this. I stumbled across a site using your tool to make it so things with fixed positioning won&#039;t be fixed anymore but absolutely positioned when scrolling to the right if the content is only supposed to scroll vertically. However his method doesn&#039;t account for a screen that is aligned to the center, leaving me with a broken menu alignment whenever I move the scrollbar.This is the js
&lt;code&gt;
var ss = new ScrollSpy({
mode: &#039;horizontal&#039;,
onTick: function(position,state,enters,leaves) {
$(&quot;menu&quot;).style.left = -position.x+&quot;px&quot;;
},
container: window
});
&lt;/code&gt;the HTML
&lt;code&gt;
&lt;!-- wrapper for content /--&gt;
&lt;!-- Start Menu Wrapper /--&gt;
&lt;a href=&quot;index.html&quot; title=&quot;home&quot; rel=&quot;nofollow&quot;&gt;RYAN&lt;/a&gt;
&lt;a href=&quot;why.html&quot; title=&quot;why&quot; rel=&quot;nofollow&quot;&gt;WHY&lt;/a&gt;
&lt;!-- End Second set of links /--&gt;
&lt;!-- End Menu Wrapper/--&gt;
&lt;!-- Start Content/--&gt;
&lt;!-- End Content/--&gt;
&lt;!-- End Content Wrap /--&gt;
&lt;/code&gt;the css
&lt;code&gt;
#menu{
margin:0;
float:left;
display:block;
position:fixed;
overflow:hidden;
}
#content_wrap{
padding:34px 34px 94px 34px;
width:892px;
overflow:hidden;
margin:0 auto;
}&lt;/code&gt;how can I make it so this only starts when someone scrolls horizontally (because of a small browser window or monitor) and goes &quot;back to normal&quot; if the screen is big enough where there are no horizontal scroll bars because the horizontal width doesn&#039;t go past the browser size?</description> <content:encoded><![CDATA[<p>This is great! there is so much potential for this. I stumbled across a site using your tool to make it so things with fixed positioning won&#8217;t be fixed anymore but absolutely positioned when scrolling to the right if the content is only supposed to scroll vertically. However his method doesn&#8217;t account for a screen that is aligned to the center, leaving me with a broken menu alignment whenever I move the scrollbar.</p><p>This is the js<br
/> <code><br
/> var ss = new ScrollSpy({<br
/> mode: 'horizontal',<br
/> onTick: function(position,state,enters,leaves) {<br
/> $("menu").style.left = -position.x+"px";<br
/> },<br
/> container: window<br
/> });<br
/> </code></p><p>the HTML<br
/> <code><br
/> <br
/></p><p> <a
href="index.html" title="home" rel="nofollow">RYAN</a></p><p> <a
href="why.html" title="why" rel="nofollow">WHY</a></p><p> <br
/> <br
/></p><p> <br
/> <br
/> </code></p><p>the css<br
/> <code><br
/> #menu{<br
/> margin:0;<br
/> float:left;<br
/> display:block;<br
/> position:fixed;<br
/> overflow:hidden;<br
/> }<br
/> #content_wrap{<br
/> padding:34px 34px 94px 34px;<br
/> width:892px;<br
/> overflow:hidden;<br
/> margin:0 auto;<br
/> }</p><p></code></p><p>how can I make it so this only starts when someone scrolls horizontally (because of a small browser window or monitor) and goes &#8220;back to normal&#8221; if the screen is big enough where there are no horizontal scroll bars because the horizontal width doesn&#8217;t go past the browser size?</p> ]]></content:encoded> </item> <item><title>By: Simon André</title><link>http://davidwalsh.name/mootools-scrollspy/comment-page-1#comment-22393</link> <dc:creator>Simon André</dc:creator> <pubDate>Fri, 21 Jan 2011 16:58:32 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2232#comment-22393</guid> <description>Hey David !Thanks a lot for this great class !Just a word : i&#039;m not sure, but you wrote thoses lines :
&lt;code&gt;
/* fix max */
if(this.max == 0)
{
var ss = this.container.getScrollSize();
this.options.max = this.options.mode == &#039;vertical&#039; ? ss.y : ss.x;
}
&lt;/code&gt;But you do not fix &quot;this.max&quot; but only &quot;this.options.max&quot;. Therefore, shouldn&#039;t you use &quot;this.options.max&quot; in the rest of the code, or modify you code such as :
&lt;code&gt;
/* fix max */
if(this.max == 0)
{
var ss = this.container.getScrollSize();
this.options.max = this.options.mode == &#039;vertical&#039; ? ss.y : ss.x;
this.max = this.options.max;
}
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Hey David !</p><p>Thanks a lot for this great class !</p><p>Just a word : i&#8217;m not sure, but you wrote thoses lines :<br
/> <code><br
/> /* fix max */<br
/> if(this.max == 0)<br
/> {<br
/> var ss = this.container.getScrollSize();<br
/> this.options.max = this.options.mode == 'vertical' ? ss.y : ss.x;<br
/> }<br
/> </code></p><p>But you do not fix &#8220;this.max&#8221; but only &#8220;this.options.max&#8221;. Therefore, shouldn&#8217;t you use &#8220;this.options.max&#8221; in the rest of the code, or modify you code such as :<br
/> <code><br
/> /* fix max */<br
/> if(this.max == 0)<br
/> {<br
/> var ss = this.container.getScrollSize();<br
/> this.options.max = this.options.mode == 'vertical' ? ss.y : ss.x;<br
/> this.max = this.options.max;<br
/> }<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: masted</title><link>http://davidwalsh.name/mootools-scrollspy/comment-page-1#comment-20045</link> <dc:creator>masted</dc:creator> <pubDate>Fri, 17 Sep 2010 10:44:59 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2232#comment-20045</guid> <description>David, copy button copys text without new line breaks</description> <content:encoded><![CDATA[<p>David, copy button copys text without new line breaks</p> ]]></content:encoded> </item> <item><title>By: luka</title><link>http://davidwalsh.name/mootools-scrollspy/comment-page-1#comment-19167</link> <dc:creator>luka</dc:creator> <pubDate>Wed, 04 Aug 2010 19:09:38 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2232#comment-19167</guid> <description>wel... I&#039;m having some problems with Google Chrome...spyScroll works great under Firefox, but example 3 seems to be not working properly under Chrome...</description> <content:encoded><![CDATA[<p>wel&#8230; I&#8217;m having some problems with Google Chrome&#8230;spyScroll works great under Firefox, but example 3 seems to be not working properly under Chrome&#8230;</p> ]]></content:encoded> </item> <item><title>By: Seb</title><link>http://davidwalsh.name/mootools-scrollspy/comment-page-1#comment-18585</link> <dc:creator>Seb</dc:creator> <pubDate>Mon, 05 Jul 2010 12:12:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2232#comment-18585</guid> <description>Awesome stuff mate, love the code!</description> <content:encoded><![CDATA[<p>Awesome stuff mate, love the code!</p> ]]></content:encoded> </item> <item><title>By: komiko-tan</title><link>http://davidwalsh.name/mootools-scrollspy/comment-page-1#comment-18437</link> <dc:creator>komiko-tan</dc:creator> <pubDate>Fri, 25 Jun 2010 19:56:11 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2232#comment-18437</guid> <description>I was wondering if you had any plans to update the script to work on the iphone?</description> <content:encoded><![CDATA[<p>I was wondering if you had any plans to update the script to work on the iphone?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 2/18 queries in 0.023 seconds using disk: basic
Object Caching 865/868 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 04:34:36 -->
