Gadget: background color in the SPACES ?

Hello , i am new in this Forum;

I remark that it is not possible to change the background color of certain module gadget ; in the "customize box"of WLS ,it is envisaged (since the 8 november update of the "tweakomatic UI " ) ; with gadget '"itune" or "Soapbox video..." it is good , but with my gadgets or others it is not possible ; I use <iframe> code in the javascript file :

1° is it a bug in WLS

2° do you know an other code

Thank for your help ! (excuse my bad English , but i am French )




Answer this question

Gadget: background color in the SPACES ?

  • AlanKohl

    Unless you set your background to "transparent" specifically, it'll default to a white background. A simple thing to do is call 'document.body.style.background = "transparent";' in your initialization code.

    However you may have more problems considering you're writing a psuedo-gadget (a gadget that uses an iframe to render some other web page rather than actually doing your work inside the gadget itself). You'll have to set your gadget's document.body's background to transparent, make sure the iframe you're embedding has its background style set to transparent, and then make sure that the embedded web page also sets its document.body background to transparent.


  • Johnny Raved

    Thank you Toddos , i try this code "transparent" ; you are the king of the gadgeters ! I test , and give the result ;

    A+++++@@@@@



  • Gadget: background color in the SPACES ?