[Project_owners] Changing the background color of a statusbarpanel

Didier Ernotte didier at ernotte.com
Thu Nov 18 12:37:16 EST 2004


Hi,

I have this code in my overlay

  <statusbar id="status-bar">
[...]
    <statusbarpanel style="padding:0; border-width:0; margin:0"
id="newsbar1" insertbefore="statusbar-updates" onclick="clickRSS(1);"/>
    <statusbarpanel style="padding:0; border-width:0; margin:0"
id="newsbar2" insertbefore="statusbar-updates" onclick="clickRSS(2);"/>
    <statusbarpanel style="padding:0; border-width:0; margin:0"
id="newsbar3" insertbefore="statusbar-updates" onclick="clickRSS(3);"/>
    <statusbarpanel style="padding:0; border-width:0; margin:0"
id="newsbar4" insertbefore="statusbar-updates" onclick="clickRSS(4);"/>
    <statusbarpanel style="padding:0; border-width:0; margin:0"
id="newsbar5" insertbefore="statusbar-updates" onclick="clickRSS(5);"/>
  </statusbar> 
</overlay>

and I have this javascript code in the associated js file

function setBackgroundColor()
{
  document.getElementById('newsbar1').style.backgroundColor="rgb(" +
getRed() + "," + getGreen() + "," + getBlue() + ")";
}

In this code, if I substitute the backgroundColor by fontWeight, the
style works fine, but not the backgroundColor .

Didier

--- HJ <bugus at universum.org> wrote:

> Didier Ernotte wrote:
> > Hi,
> > 
> > I'm trying to set the background color of a statusbarpanel of my
> > extention, but I can't succed. I can change the font family, the
> font
> > weigth, the margin, the padding, but not the background color. It
> > doesn't work on windows nor on a mac.
> > Could you help me. Thanks
> > 
> > Didier
> 
> Can you add a code snippet, because that might help us to help you ;)
> 
> /HJ
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 



		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 



More information about the Project_owners mailing list