Forum Moderators: open

Message Too Old, No Replies

ie6 & ie7 iframe - background-color NO DISPLAY

ie6 & ie7 iframe - background-color NO DISPLAY

         

badgering

11:36 am on Aug 1, 2007 (gmt 0)

10+ Year Member



My site runs 3rd party ads in a iframe of my header. My header has a style background-color:#F8AC19

My problem is when there are no 3rd party ads running the iframe still loads a white square. I do not have access to the iframe html page code as this is 3rd party page so I have tried to add style="background-color:#F8AC19" in the actual iframe on my page which works in everything except ie6 and ie7 has anyone got any ideas how to get this to work in IE browsers?

Thx
Dan

penders

12:35 pm on Aug 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As mentioned on the Microsoft site [msdn2.microsoft.com], you can access the properties of the iframe object with JavaScript:

sColor = document.frames("sFrameName").document.body.style.backgroundColor;

Can you change this value?