Further to my previous post, I've narrowed down a bit what the Netscape
problem is with my layers.
It seems it doesn't like me creating two classes of styles. I never had
the problem before because I only had one class. I tried taking out one
of my classes and the class that didn't work worked fine.
Anyway, in my <DIV id="layerwhoare" class="MAIN"> I keep getting the
error "document.layerwhoare has no properties" when I try to reference
it in code
ex:
function hideLayers(){
if (document.all){
document.all("layerwhoare".style.visibility = "hidden";
document.all("layerwhatdo".style.visibility = "hidden";
document.all("layerwhyare".style.visibility = "hidden";
document.all("layerwhatabout".style.visibility = "hidden";
}
else{
document.layerwhoare.visibility = "hide";
document.layerwhatdo.visibility = "hide";
document.layerwhyare.visibility = "hide";
document.layerwhatabout.visibility = "hide";
}
}
works great in IE but not in Netscape.
Here is my style block:
<STYLE TYPE="text/css">
.MAIN{
position: absolute;
visibility: hidden;
top: 270px;
left: 180px;
}
.TEST{
position: absolute;
visibility: hidden;
top: 112px;
left: 120px;
}
</STYLE>
Like I said when I take .TEST out, .MAIN works fine. You can see what
it's doing at:
I also tried using #TEST and #MAIN, but it didn't recognize that at all.
Anyone have any suggestions as to why it's not working right?
Thanks muchly! Take care and God bless!
John Hanley
problem is with my layers.
It seems it doesn't like me creating two classes of styles. I never had
the problem before because I only had one class. I tried taking out one
of my classes and the class that didn't work worked fine.
Anyway, in my <DIV id="layerwhoare" class="MAIN"> I keep getting the
error "document.layerwhoare has no properties" when I try to reference
it in code
ex:
function hideLayers(){
if (document.all){
document.all("layerwhoare".style.visibility = "hidden";
document.all("layerwhatdo".style.visibility = "hidden";
document.all("layerwhyare".style.visibility = "hidden";
document.all("layerwhatabout".style.visibility = "hidden";
}
else{
document.layerwhoare.visibility = "hide";
document.layerwhatdo.visibility = "hide";
document.layerwhyare.visibility = "hide";
document.layerwhatabout.visibility = "hide";
}
}
works great in IE but not in Netscape.
Here is my style block:
<STYLE TYPE="text/css">
.MAIN{
position: absolute;
visibility: hidden;
top: 270px;
left: 180px;
}
.TEST{
position: absolute;
visibility: hidden;
top: 112px;
left: 120px;
}
</STYLE>
Like I said when I take .TEST out, .MAIN works fine. You can see what
it's doing at:
I also tried using #TEST and #MAIN, but it didn't recognize that at all.
Anyone have any suggestions as to why it's not working right?
Thanks muchly! Take care and God bless!
John Hanley