<?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: Use JavaScript to change &#8220;float&#8221; style</title>
	<atom:link href="http://www.iamseree.com/application-development/use-javascript-to-change-float-style/feed" rel="self" type="application/rss+xml" />
	<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style</link>
	<description>Keep learning everyday, willing to win and take action</description>
	<lastBuildDate>Thu, 08 Dec 2011 07:37:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jillian Marohnic</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-8368</link>
		<dc:creator>Jillian Marohnic</dc:creator>
		<pubDate>Sun, 10 Jul 2011 03:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-8368</guid>
		<description>Thank you!  So simple, yet so much frustration.</description>
		<content:encoded><![CDATA[<p>Thank you!  So simple, yet so much frustration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Altin</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-6460</link>
		<dc:creator>Altin</dc:creator>
		<pubDate>Wed, 04 May 2011 19:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-6460</guid>
		<description>Thanks a million, this solved my problem ;)</description>
		<content:encoded><![CDATA[<p>Thanks a million, this solved my problem <img src='http://www.iamseree.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Black_Diamond</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-6329</link>
		<dc:creator>Black_Diamond</dc:creator>
		<pubDate>Sat, 30 Apr 2011 08:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-6329</guid>
		<description>sorry I had a problem with copying it..Here it is  the whole script thank you



&lt;script language=&#039;javascript&#039; type=&#039;text/javascript&#039;&gt;
function float1(){
var aa = document.getElementById(&#039;yourdiv1&#039;);
var bb = document.getElementById(&#039;yourdiv2&#039;);
aa.style.cssFloat= &#039;right&#039;;
aa.style.styleFloat= &#039;right&#039;;
bb.style.cssFloat = &#039;left&#039;;
bb.style.styleFloat = &#039;left&#039;;
}
function float2(){
var aa = document.getElementById(&#039;yourdiv1&#039;);
var bb = document.getElementById(&#039;yourdiv2&#039;);
aa.style.cssFloat = &#039;left&#039;;
bb.style.cssFloat = &#039;right&#039;;
aa.style.styleFloat = &#039;left&#039;;
bb.style.styleFloat= &#039;right&#039;;
}
&lt;/script&gt;


&lt;input type=&quot;button&quot; onclick=&quot;float1();&quot; value=&quot;style 1&quot;&gt;
&lt;input type=&quot;button&quot; onclick=&quot;float2();&quot; value=&quot;style 2&quot;&gt;
&lt;br&gt;
&lt;div id=&quot;yourdiv1&quot;&gt;aaaaaa&lt;/div&gt;
&lt;div id=&quot;yourdiv2&quot;&gt;bbbbbb&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>sorry I had a problem with copying it..Here it is  the whole script thank you</p>
<p>&lt;script language=&#039;javascript&#039; type=&#039;text/javascript&#039;&gt;<br />
function float1(){<br />
var aa = document.getElementById(&#039;yourdiv1&#039;);<br />
var bb = document.getElementById(&#039;yourdiv2&#039;);<br />
aa.style.cssFloat= &#039;right&#039;;<br />
aa.style.styleFloat= &#039;right&#039;;<br />
bb.style.cssFloat = &#039;left&#039;;<br />
bb.style.styleFloat = &#039;left&#039;;<br />
}<br />
function float2(){<br />
var aa = document.getElementById(&#039;yourdiv1&#039;);<br />
var bb = document.getElementById(&#039;yourdiv2&#039;);<br />
aa.style.cssFloat = &#039;left&#039;;<br />
bb.style.cssFloat = &#039;right&#039;;<br />
aa.style.styleFloat = &#039;left&#039;;<br />
bb.style.styleFloat= &#039;right&#039;;<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;input type=&quot;button&quot; onclick=&quot;float1();&quot; value=&quot;style 1&quot;&gt;<br />
&lt;input type=&quot;button&quot; onclick=&quot;float2();&quot; value=&quot;style 2&quot;&gt;<br />
&lt;br&gt;<br />
&lt;div id=&quot;yourdiv1&quot;&gt;aaaaaa&lt;/div&gt;<br />
&lt;div id=&quot;yourdiv2&quot;&gt;bbbbbb&lt;/div&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Black_Diamond</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-6328</link>
		<dc:creator>Black_Diamond</dc:creator>
		<pubDate>Sat, 30 Apr 2011 08:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-6328</guid>
		<description>thanks a lot buddy..very helpful..Its the first time I am finding an answer in a forum..Using your information i created the following script which is  is working in all browsers...Have a look 


function float1(){
var aa = document.getElementById(&#039;yourdiv1&#039;);
var bb = document.getElementById(&#039;yourdiv2&#039;);
aa.style.cssFloat= &#039;right&#039;;
aa.style.styleFloat= &#039;right&#039;;
bb.style.cssFloat = &#039;left&#039;;
bb.style.styleFloat = &#039;left&#039;;
}
function float2(){
var aa = document.getElementById(&#039;yourdiv1&#039;);
var bb = document.getElementById(&#039;yourdiv2&#039;);
aa.style.cssFloat = &#039;left&#039;;
bb.style.cssFloat = &#039;right&#039;;
aa.style.styleFloat = &#039;left&#039;;
bb.style.styleFloat= &#039;right&#039;;
}






aaaaaa
bbbbbb</description>
		<content:encoded><![CDATA[<p>thanks a lot buddy..very helpful..Its the first time I am finding an answer in a forum..Using your information i created the following script which is  is working in all browsers&#8230;Have a look </p>
<p>function float1(){<br />
var aa = document.getElementById(&#8216;yourdiv1&#8242;);<br />
var bb = document.getElementById(&#8216;yourdiv2&#8242;);<br />
aa.style.cssFloat= &#8216;right&#8217;;<br />
aa.style.styleFloat= &#8216;right&#8217;;<br />
bb.style.cssFloat = &#8216;left&#8217;;<br />
bb.style.styleFloat = &#8216;left&#8217;;<br />
}<br />
function float2(){<br />
var aa = document.getElementById(&#8216;yourdiv1&#8242;);<br />
var bb = document.getElementById(&#8216;yourdiv2&#8242;);<br />
aa.style.cssFloat = &#8216;left&#8217;;<br />
bb.style.cssFloat = &#8216;right&#8217;;<br />
aa.style.styleFloat = &#8216;left&#8217;;<br />
bb.style.styleFloat= &#8216;right&#8217;;<br />
}</p>
<p>aaaaaa<br />
bbbbbb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Penuel</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-5808</link>
		<dc:creator>Penuel</dc:creator>
		<pubDate>Thu, 14 Apr 2011 09:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-5808</guid>
		<description>Thanks for posting this!</description>
		<content:encoded><![CDATA[<p>Thanks for posting this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leon</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-1073</link>
		<dc:creator>Leon</dc:creator>
		<pubDate>Sat, 13 Mar 2010 21:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-1073</guid>
		<description>So that makes him plain stupid.</description>
		<content:encoded><![CDATA[<p>So that makes him plain stupid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bobby</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-1070</link>
		<dc:creator>Bobby</dc:creator>
		<pubDate>Fri, 26 Feb 2010 07:39:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-1070</guid>
		<description>Thanks a lot.. very help ful to me..</description>
		<content:encoded><![CDATA[<p>Thanks a lot.. very help ful to me..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eino</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-1068</link>
		<dc:creator>Eino</dc:creator>
		<pubDate>Fri, 19 Feb 2010 09:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-1068</guid>
		<description>float is a reserved word in about every programming language, so it&#039;s not silly.</description>
		<content:encoded><![CDATA[<p>float is a reserved word in about every programming language, so it&#8217;s not silly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boss Hawk</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-1063</link>
		<dc:creator>Boss Hawk</dc:creator>
		<pubDate>Wed, 30 Dec 2009 17:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-1063</guid>
		<description>Here is a little workaround for this problem:

obj.setAttribute(&quot;style&quot;, obj.getAttribute(&quot;style&quot;) + &quot;; float:left; &quot;);

The leading semicolon must be set because the IE sometimes changes the styles and always misses out the last semicolon.</description>
		<content:encoded><![CDATA[<p>Here is a little workaround for this problem:</p>
<p>obj.setAttribute(&#8220;style&#8221;, obj.getAttribute(&#8220;style&#8221;) + &#8220;; float:left; &#8220;);</p>
<p>The leading semicolon must be set because the IE sometimes changes the styles and always misses out the last semicolon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-1058</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Thu, 26 Nov 2009 16:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-1058</guid>
		<description>Thanks man, very helpful! Much appreciated</description>
		<content:encoded><![CDATA[<p>Thanks man, very helpful! Much appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Me</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-250</link>
		<dc:creator>Me</dc:creator>
		<pubDate>Sat, 21 Mar 2009 03:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-250</guid>
		<description>Bless you for posting this! I was tearing my hair out trying to figure out why my float code worked in FF but not IE!! And styleFloat works like a dream.</description>
		<content:encoded><![CDATA[<p>Bless you for posting this! I was tearing my hair out trying to figure out why my float code worked in FF but not IE!! And styleFloat works like a dream.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-102</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Wed, 26 Nov 2008 17:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-102</guid>
		<description>Ohh thx!
i figured that it needed something in front, since float really is a datatype, so using it in obj.style.float would be impossible.</description>
		<content:encoded><![CDATA[<p>Ohh thx!<br />
i figured that it needed something in front, since float really is a datatype, so using it in obj.style.float would be impossible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erwinke</title>
		<link>http://www.iamseree.com/application-development/use-javascript-to-change-float-style/comment-page-1#comment-14</link>
		<dc:creator>erwinke</dc:creator>
		<pubDate>Fri, 07 Nov 2008 14:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamseree.com/?p=33#comment-14</guid>
		<description>Under IE6 you must use this:

obj.style.styleFloat=&#039;left&#039;;</description>
		<content:encoded><![CDATA[<p>Under IE6 you must use this:</p>
<p>obj.style.styleFloat=&#8217;left&#8217;;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

