Try This.  

//setFgColor
//color is required.  it is the color in the form of #000000
//fresh is optional and is only used on ns4.  if true then
//it removes all previous formating and writes the color change and the
previously written HTML
//tested on Win98 platforms with NS4, NS6, IE5+
DynLayer.prototype.setFgColor=function(color, fresh) {
  if (color==null && !is.ns4) color='transparent';
  this.color=color;
  if (this.css==null) return;
  if (is.ns4)
  {
     if (this.StoredHTML==null)
     {
        this.StoredHTML=this.html;
     }
     if (fresh) this.setHTML('<font color="'+color+'">'+this.StoredHTML+'<
/font>');
     else this.setHTML('<font color="'+color+'">'+this.html+'</font>');
  }
  else this.css.color=color;
};
DynLayer.prototype.getFgColor=function() {
return this.color;
};

Reply via email to