By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,651 Members | 1,551 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,651 IT Pros & Developers. It's quick & easy.

netscape div solid background

P: n/a
I have a div which I position on the page containing errors. In IE it works
fine. In Netscape it has a transparent background and I'm unable to make it
solid. Please help. Thanks

<div id="statusContainer"
style="display:none;position:absolute;top:0px;left :0px;height:0px;width:0px;">
<table border="15" bordercolor="#DE0000" bordercolorlight="#FF0000"
cellpadding="10"><tr><td><table cellspacing="0" cellpadding="0">
<tr><td id="statusText" nowrap><%=status%></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td align="center"><input type="button" value="Close"
onclick="document.getElementById('statusContainer' ).style.display='none';
document.getElementById('statusFrame').style.displ ay='none';"></td></tr>
</table></td></tr>
</div>
<iframe id="statusFrame"
style="display:none;top:0px;left:0px;height:0px;wi dth:0px;position:absolute;"
src="about:blank" frameBorder="0" scrolling="no"></iframe>

var clientX,clientY;
if (self.innerHeight) {
clientX = self.innerWidth;
clientY = self.innerHeight;
}
else if (document.documentElement &&
document.documentElement.clientHeight) {
clientX = document.documentElement.clientWidth;
clientY = document.documentElement.clientHeight;
}
else if (document.body) {
clientX = document.body.clientWidth;
clientY = document.body.clientHeight;
}
var container = document.getElementById("statusContainer");
var frame = document.getElementById("statusFrame");
container.style.top = (y + 50) + "px";
container.style.left = (x + 50) + "px";
container.zIndex = 99;
container.style.display = "block";
frame.style.width = container.offsetWidth + "px";
frame.style.height = container.offsetHeight + "px";
frame.style.zIndex = container.style.zIndex - 1;
frame.style.display = "block";

Dec 3 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a


If the page contains errors, chances are the culprit is there, so,
repost with a more specific query.
Danny
Dec 4 '05 #2

P: n/a
>From: David McDivitt <x1*********@del-yahoo.com>
Date: Sat, 03 Dec 2005 17:02:07 -0600
Lines: 44

I have a div which I position on the page containing errors. In IE it works
fine. In Netscape it has a transparent background and I'm unable to make it
solid. Please help. Thanks


I fixed my problem by using class="whatever" in the tag. Should not have to
do that. I should have been able to add more stuff to the style property,
but that did not help. I had something in the style sheet already so I used
that, and it ends up looking better than plain white.
--
http://nonspiritual.com
http://freeconservative.org
http://todiscuss.com
Dec 4 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.