[thelist] Change Iframe background colour
Ben Morrison
ben.morrison at dogstardesign.co.uk
Thu Dec 11 03:39:10 CST 2003
<bump>
Is this possible?
</bump>
http://www.pup-e.co.uk/sitecheck/iframetest.htm
I cant find a x-browser solution to change the background colour of an
iframe, ie seems to work fine, but no luck in safari, here is my current
code:
function change_background() {
document.frames.subscribe.document.body.style.backgroundColor="#CCFF66";
}
<iframe src="subscribe.htm" id="subscribe" name="subscribe"></iframe>
I have tried (with no results):
document.getElementById('subscribe').style.background="#CCFF66";
I also tried using css to set the iframe properties:
#subscribe{
background:#CCFF66;
}
iframe {
background:#CCFF66;
}
Any pointers much apreciated, I have read that the *new* version of safari
will support iframe transparency.
Benjer
More information about the thelist
mailing list