<?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: Save Text Size Preference Using MooTools&#160;1.2</title> <atom:link href="http://davidwalsh.name/save-text-size-mootools/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/save-text-size-mootools</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Wed, 23 May 2012 22:21:39 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Eric Wendelin</title><link>http://davidwalsh.name/save-text-size-mootools#comment-22481</link> <dc:creator>Eric Wendelin</dc:creator> <pubDate>Thu, 27 Jan 2011 17:13:54 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=240#comment-22481</guid> <description>Thanks, Matt.You can use &quot;window.location.host&quot; to get the current domain.Cheers,
Eric</description> <content:encoded><![CDATA[<p>Thanks, Matt.</p><p>You can use &#8220;window.location.host&#8221; to get the current domain.</p><p>Cheers,<br
/> Eric</p> ]]></content:encoded> </item> <item><title>By: Matt Thomas</title><link>http://davidwalsh.name/save-text-size-mootools#comment-22476</link> <dc:creator>Matt Thomas</dc:creator> <pubDate>Thu, 27 Jan 2011 12:54:09 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=240#comment-22476</guid> <description>Great Post! I was wondering if there is a way to automatically detect the domain to make this script more portable?Thanks!Best,Matt</description> <content:encoded><![CDATA[<p>Great Post! I was wondering if there is a way to automatically detect the domain to make this script more portable?</p><p>Thanks!</p><p>Best,</p><p>Matt</p> ]]></content:encoded> </item> <item><title>By: Eric M Wendelin</title><link>http://davidwalsh.name/save-text-size-mootools#comment-20201</link> <dc:creator>Eric M Wendelin</dc:creator> <pubDate>Fri, 24 Sep 2010 14:02:50 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=240#comment-20201</guid> <description>Richard:You&#039;ll want something like&lt;code&gt;document.getElementById(&#039;content&#039;).style.fontSize = fontsz;&lt;/code&gt;Let me know if that doesn&#039;t work for you. Cheers, Eric</description> <content:encoded><![CDATA[<p>Richard:</p><p>You&#8217;ll want something like</p><p><code>document.getElementById('content').style.fontSize = fontsz;</code></p><p>Let me know if that doesn&#8217;t work for you. Cheers, Eric</p> ]]></content:encoded> </item> <item><title>By: Richard Clark</title><link>http://davidwalsh.name/save-text-size-mootools#comment-20189</link> <dc:creator>Richard Clark</dc:creator> <pubDate>Fri, 24 Sep 2010 08:54:14 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=240#comment-20189</guid> <description>Hi,I would like to target by ID a div (eg the &#039;content&#039; div in your example) and change just the text size of this when the button is clicked, and not all of the text.How would I amend the following line to do this?// Change body text size
document.body.style.fontSize = fontsz;I&#039;ve tried – document.body.getElementById(&quot;content&quot;) = fontsz; but that didn&#039;t seem to work.Any help would be greatly appreciatedThanks,Richard</description> <content:encoded><![CDATA[<p>Hi,</p><p>I would like to target by ID a div (eg the &#8216;content&#8217; div in your example) and change just the text size of this when the button is clicked, and not all of the text.</p><p>How would I amend the following line to do this?</p><p>// Change body text size<br
/> document.body.style.fontSize = fontsz;</p><p>I&#8217;ve tried – document.body.getElementById(&#8220;content&#8221;) = fontsz; but that didn&#8217;t seem to work.</p><p>Any help would be greatly appreciated</p><p>Thanks,</p><p>Richard</p> ]]></content:encoded> </item> <item><title>By: Vojtech Machacek</title><link>http://davidwalsh.name/save-text-size-mootools#comment-12904</link> <dc:creator>Vojtech Machacek</dc:creator> <pubDate>Mon, 26 Oct 2009 01:01:29 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=240#comment-12904</guid> <description>I tried to implement it with jquery and radSlider ASP.NET control. But i reach some problems. After I read comments, and figure out, that best solutions is make &quot;fake&quot; button for text size changing, which shows bubble with something like &quot;Wanna change text size - try CTRL + mouse wheel and if it doesn&#039;t work get better browser&quot;... That&#039;s best solution IMO :)</description> <content:encoded><![CDATA[<p>I tried to implement it with jquery and radSlider ASP.NET control. But i reach some problems. After I read comments, and figure out, that best solutions is make &#8220;fake&#8221; button for text size changing, which shows bubble with something like &#8220;Wanna change text size &#8211; try CTRL + mouse wheel and if it doesn&#8217;t work get better browser&#8221;&#8230; That&#8217;s best solution IMO :)</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/save-text-size-mootools#comment-10544</link> <dc:creator>David Walsh</dc:creator> <pubDate>Tue, 21 Jul 2009 12:57:21 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=240#comment-10544</guid> <description>&lt;p&gt;@Andy: Line 13 is fine.  What error?&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@Andy: Line 13 is fine.  What error?</p> ]]></content:encoded> </item> <item><title>By: Andy</title><link>http://davidwalsh.name/save-text-size-mootools#comment-10540</link> <dc:creator>Andy</dc:creator> <pubDate>Tue, 21 Jul 2009 06:19:25 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=240#comment-10540</guid> <description>There seems to be an error with the way your blog parsed the domain on line 13. For a JS newb like me it was a little confusing for a moment :P</description> <content:encoded><![CDATA[<p>There seems to be an error with the way your blog parsed the domain on line 13. For a JS newb like me it was a little confusing for a moment :P</p> ]]></content:encoded> </item> <item><title>By: Liam</title><link>http://davidwalsh.name/save-text-size-mootools#comment-4429</link> <dc:creator>Liam</dc:creator> <pubDate>Wed, 07 Jan 2009 11:47:59 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=240#comment-4429</guid> <description>Instead of using &#039; document.body.style.fontSize = fontsz;&#039; you can use morph and change the default unit to em so its a smooth transition instead of the jump in size://set up morph
var morphTextSize = new Fx.Morph(document.body,{duration:300,transition:Fx.Transitions.linear,&#039;unit&#039;:&#039;em&#039;});//set font size
morphTextSize.start({
&#039;font-size&#039;: parseFloat(fontsz) + (multiplier * 0.2)
});</description> <content:encoded><![CDATA[<p>Instead of using &#8216; document.body.style.fontSize = fontsz;&#8217; you can use morph and change the default unit to em so its a smooth transition instead of the jump in size:</p><p>//set up morph<br
/> var morphTextSize = new Fx.Morph(document.body,{duration:300,transition:Fx.Transitions.linear,&#8217;unit&#8217;:'em&#8217;});</p><p>//set font size<br
/> morphTextSize.start({<br
/> &#8216;font-size&#8217;: parseFloat(fontsz) + (multiplier * 0.2)<br
/> });</p> ]]></content:encoded> </item> <item><title>By: Eric Wendelin</title><link>http://davidwalsh.name/save-text-size-mootools#comment-4167</link> <dc:creator>Eric Wendelin</dc:creator> <pubDate>Thu, 11 Dec 2008 23:36:07 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=240#comment-4167</guid> <description>@Geek34:
Yes, the Mootools Cookie class has changed since this was written. The correct functions are Cookie.read() and Cookie.write() respectively :)</description> <content:encoded><![CDATA[<p>@Geek34:<br
/> Yes, the Mootools Cookie class has changed since this was written. The correct functions are Cookie.read() and Cookie.write() respectively :)</p> ]]></content:encoded> </item> <item><title>By: Geek34</title><link>http://davidwalsh.name/save-text-size-mootools#comment-4148</link> <dc:creator>Geek34</dc:creator> <pubDate>Wed, 10 Dec 2008 10:51:35 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=240#comment-4148</guid> <description>cookie.get don&#039;t work</description> <content:encoded><![CDATA[<p>cookie.get don&#8217;t work</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 3/7 queries in 0.006 seconds using disk: basic
Object Caching 813/813 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-23 18:03:24 -->
