<?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>Comments on: Implement simple font zoomer in JavaScript &amp; HTML</title> <atom:link href="http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html/feed" rel="self" type="application/rss+xml" /><link>http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html</link> <description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description> <lastBuildDate>Wed, 08 Feb 2012 10:36:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: amy</title><link>http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html/comment-page-1#comment-13953</link> <dc:creator>amy</dc:creator> <pubDate>Fri, 11 Feb 2011 06:40:25 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1047#comment-13953</guid> <description>thanks for the code of simple font zoomer in JavaScript</description> <content:encoded><![CDATA[<p>thanks for the code of simple font zoomer in JavaScript</p> ]]></content:encoded> </item> <item><title>By: Niladri</title><link>http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html/comment-page-1#comment-13692</link> <dc:creator>Niladri</dc:creator> <pubDate>Wed, 05 Jan 2011 10:00:18 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1047#comment-13692</guid> <description>good job done by you.thnx for that.but when I am using master page that time it doesn’t work. Can you please guide me on this? Thanks.</description> <content:encoded><![CDATA[<p>good job done by you.thnx for that.but when I am using master page that time it doesn’t work. Can you please guide me on this? Thanks.</p> ]]></content:encoded> </item> <item><title>By: littlebear</title><link>http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html/comment-page-1#comment-11994</link> <dc:creator>littlebear</dc:creator> <pubDate>Tue, 26 Jan 2010 18:54:46 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1047#comment-11994</guid> <description>Thanks Viral Patel.  Your code look very simple, I applied it on my test page, it worked very well.  And I have a question related to that.  I want to use cookie to carry whatever font size the users using to the next page they go (of course on the same web site).  I found this code and put right before the  tag but it doesn&#039;t work.  I&#039;m not a programmer, can you please address me on this?  Thanks.function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = &quot;; expires=&quot;+date.toGMTString(); } else var expires = &quot;&quot;; document.cookie = name+&quot;=&quot;+value+expires+&quot;; path=/&quot;; }function readCookie(name) { var nameEQ = name + &quot;=&quot;; var ca = document.cookie.split(&#039;;&#039;); for(var i=0;i &lt; ca.length;i++) { var c = ca[i]; while (c.charAt(0)==&#039; &#039;) c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; }</description> <content:encoded><![CDATA[<p>Thanks Viral Patel.  Your code look very simple, I applied it on my test page, it worked very well.  And I have a question related to that.  I want to use cookie to carry whatever font size the users using to the next page they go (of course on the same web site).  I found this code and put right before the  tag but it doesn&#8217;t work.  I&#8217;m not a programmer, can you please address me on this?  Thanks.</p><p>function createCookie(name,value,days) {<br /> if (days) {<br /> var date = new Date();<br /> date.setTime(date.getTime()+(days*24*60*60*1000));<br /> var expires = &#8220;; expires=&#8221;+date.toGMTString();<br /> }<br /> else var expires = &#8220;&#8221;;<br /> document.cookie = name+&#8221;=&#8221;+value+expires+&#8221;; path=/&#8221;;<br /> }</p><p>function readCookie(name) {<br /> var nameEQ = name + &#8220;=&#8221;;<br /> var ca = document.cookie.split(&#8216;;&#8217;);<br /> for(var i=0;i &lt; ca.length;i++) {<br /> var c = ca[i];<br /> while (c.charAt(0)==&#039; &#039;) c = c.substring(1,c.length);<br /> if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);<br /> }<br /> return null;<br /> }</p> ]]></content:encoded> </item> <item><title>By: bartazari</title><link>http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html/comment-page-1#comment-3583</link> <dc:creator>bartazari</dc:creator> <pubDate>Sat, 04 Apr 2009 18:04:39 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1047#comment-3583</guid> <description>good</description> <content:encoded><![CDATA[<p>good</p> ]]></content:encoded> </item> <item><title>By: Viral Patel</title><link>http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html/comment-page-1#comment-3272</link> <dc:creator>Viral Patel</dc:creator> <pubDate>Wed, 01 Apr 2009 03:49:22 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1047#comment-3272</guid> <description>Hi Hasor, I have changed the code in my previous comment. take a look. Paste the javascript code in HEAD and buttons in BODY.</description> <content:encoded><![CDATA[<p>Hi Hasor,<br /> I have changed the code in my previous comment. take a look.<br /> Paste the javascript code in HEAD and buttons in BODY.</p> ]]></content:encoded> </item> <item><title>By: hasnor</title><link>http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html/comment-page-1#comment-3223</link> <dc:creator>hasnor</dc:creator> <pubDate>Tue, 31 Mar 2009 08:11:25 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1047#comment-3223</guid> <description>Tq....  just put the codes in the head of html? .... how to put in the body part........</description> <content:encoded><![CDATA[<p>Tq&#8230;.  just put the codes in the head of html? &#8230;. how to put in the body part&#8230;&#8230;..</p> ]]></content:encoded> </item> <item><title>By: Viral Patel</title><link>http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html/comment-page-1#comment-3161</link> <dc:creator>Viral Patel</dc:creator> <pubDate>Mon, 30 Mar 2009 09:06:44 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1047#comment-3161</guid> <description>Hi Hasnor, Following is the integrated code. Copy the code in FontZoomer.html and test it in your favorite browser. &lt;pre name=&quot;code&quot; class=&quot;html&quot;&gt; &lt;html&gt; &lt;head&gt; &lt;script language=&quot;javascript&quot;&gt; var fontSize = 1; function zoomIn() { fontSize += 0.1; document.body.style.fontSize = fontSize + &quot;em&quot;; } function zoomOut() { fontSize -= 0.1; document.body.style.fontSize = fontSize + &quot;em&quot;; } &lt;/script&gt; &lt;/head&gt; &lt;body&gt;&lt;input type=&quot;button&quot; value=&quot;+&quot; onClick=&quot;zoomIn()&quot;/&gt; &lt;input type=&quot;button&quot; value=&quot;-&quot; onClick=&quot;zoomOut()&quot;/&gt;A quick brown fox jumps over lazy dog.&lt;/body&gt; &lt;/html&gt; &lt;/pre&gt;</description> <content:encoded><![CDATA[<p>Hi Hasnor,<br /> Following is the integrated code. Copy the code in FontZoomer.html and test it in your favorite browser.</p><pre name="code" class="html">
&lt;html&gt;
&lt;head&gt;
 	&lt;script language="javascript"&gt;
 	var fontSize = 1;
	function zoomIn() {
		fontSize += 0.1;
		document.body.style.fontSize = fontSize + "em";
	}
	function zoomOut() {
		fontSize -= 0.1;
		document.body.style.fontSize = fontSize + "em";
	}
	&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;input type="button" value="+" onClick="zoomIn()"/&gt;
&lt;input type="button" value="-" onClick="zoomOut()"/&gt;

A quick brown fox jumps over lazy dog.

&lt;/body&gt;
&lt;/html&gt;
</pre>]]></content:encoded> </item> <item><title>By: hasnor</title><link>http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html/comment-page-1#comment-3159</link> <dc:creator>hasnor</dc:creator> <pubDate>Mon, 30 Mar 2009 08:16:19 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1047#comment-3159</guid> <description>Hi,How to put the both codes in HTML? please show the steps...Tq.</description> <content:encoded><![CDATA[<p>Hi,</p><p>How to put the both codes in HTML? please show the steps&#8230;</p><p>Tq.</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

Served from: viralpatel.net @ 2012-02-09 10:13:06 -->
