Here is the problematic code.
<td background="images/welcome.gif" width="617" height="55"><div class="navtext" style="width:600;height:50; position:relative; top:0px; left:0px;">
<iframe border=0 height=50 width=600 noresize src="/internet/northside/northside.nsf/520a3a45865784fb85256a9600510609/b598650a872cdf8985256a9600513e7f?OpenDocument" STYLE="position:relative; top:0px; left:0px;"></iframe>
<ilayer height=50 width=600 src="temp3.htm" ></ilayer>
</div> </td>
I also have this code in a seperate js file that is causing an error for netscape only:
function checkobjref(id) {
/*
Takes the ID of a positioned HTML element and returns an object reference.
*/
// This function checks for DOM strategy, then
// returns an object reference.
if (document.all) {
return document.all[id].style;
} else if(document.layers) {
return document.layers[id];
}
}
if (document.layers) {
var hidden = "hide";
var visible = "show";
} else {
var hidden = "hidden";
var visible = "visible";
}
var toggle = "toggle";
function layerVisibility() {
if (document.layers || document.all)
{
var inc, endInc=arguments.length;
// run through the args (objects) and set the visibility of each
for (inc=0; inc<endInc; inc+=2)
{
// get a good object reference
var daObj = checkobjref(arguments[inc]);
if (arguments[inc+1] == hidden)
{
// hide the object
daObj.visibility = hidden;
}
else if (arguments[inc+1] == visible)
{
// show the object
daObj.visibility = visible;
}
else if (arguments[inc+1] == toggle)
{
// toggle the object's visibility
if (daObj.visibility == visible)
{
daObj.visibility = hidden;
}
else if (daObj.visibility == hidden)
{
daObj.visibility = visible;
}
}
}
}
}
Ok. What am I doing wrong here? This works just how I want it to in IE but Netscape 4.x doesn't want to do it right the only thing I get are those two layers showing in the wrong spot and the javascript errors. The entire rest of the page doesn't even show up. The above code should be able to insert right into the page while still showing the other content on the page.
I would really appreciate any help. Thanks alot :)

New Topic/Question
Reply



MultiQuote





|