<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1011793" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1011793</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/font-color#comment-1067711</link>
    <description> &lt;p&gt;I am trying to change text color or background color for different options using javascript, please look at code above.&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Jul 2000 13:07:50 +0000</pubDate>
 <dc:creator>dhaliwam</dc:creator>
 <guid isPermaLink="false">comment 1067711 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/font-color#comment-1067709</link>
    <description> &lt;p&gt;Thanks but I am not sure if its going to work for a select box&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Jul 2000 12:54:06 +0000</pubDate>
 <dc:creator>dhaliwam</dc:creator>
 <guid isPermaLink="false">comment 1067709 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/font-color#comment-1067690</link>
    <description> &lt;p&gt;Only in IE4+&lt;/p&gt;
&lt;p&gt;document.body.style.backgroundColor = COLOR;&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Jul 2000 04:54:34 +0000</pubDate>
 <dc:creator>Lloyd Hassell</dc:creator>
 <guid isPermaLink="false">comment 1067690 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/font-color#comment-1067644</link>
    <description> &lt;p&gt;Actually thats not possible because I am populating that list dynamically&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Jul 2000 20:07:11 +0000</pubDate>
 <dc:creator>dhaliwam</dc:creator>
 <guid isPermaLink="false">comment 1067644 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/font-color#comment-1067642</link>
    <description> &lt;p&gt;Hmm.. You -could- try to specify different style attributes to each one.&lt;br /&gt;
Like..&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Jul 2000 20:03:01 +0000</pubDate>
 <dc:creator>TheGraphicsExperience</dc:creator>
 <guid isPermaLink="false">comment 1067642 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/font-color#comment-1067638</link>
    <description> &lt;p&gt;I guess select box is a better example, is it possible to use different colors for different options dynamically&lt;/p&gt;
&lt;p&gt;EmpID.options.length = 0;&lt;br /&gt;
 for (var i = 0; i &amp;lt; Emp.getRowCount(); i++) {&lt;br /&gt;
    NewOpt = new Option; &lt;/p&gt;
&lt;p&gt;    NewOpt.value = Emp.id[i];&lt;br /&gt;
    NewOpt.text = Emp.employee_name[i];&lt;br /&gt;
    if( Emp.id[i] == objects_array[r].object_id)&lt;br /&gt;
	NewOpt.text.style=&quot;color:red;&quot;&lt;br /&gt;
    else&lt;br /&gt;
       NewOpt.text.style=&quot;color:blue;&quot;&lt;br /&gt;
    EmpID.options[EmpID.options.length] =NewOpt;&lt;br /&gt;
}&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Jul 2000 19:52:11 +0000</pubDate>
 <dc:creator>dhaliwam</dc:creator>
 <guid isPermaLink="false">comment 1067638 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/font-color#comment-1067635</link>
    <description> &lt;p&gt;I&#039;m not quite sure what you&#039;re asking--care to elaborate?&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Jul 2000 19:28:47 +0000</pubDate>
 <dc:creator>TheGraphicsExperience</dc:creator>
 <guid isPermaLink="false">comment 1067635 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
