questhaven
Programmer
Hi - I am trying to get around using document.all because it is not working in Netscape. The solution that I have been reading about on the internet however, is not working in Netscape either. Could somebody cehck out the code below and see if it looks like I am doing in right? Thanks!
function showAll(){
divColl = document.getElementsByTagName("DIV"
;
for (i=0; i <divColl.length; i++) {
if (divColl(i).className == "LEVEL3"
{
divColl(i).style.display =
(isExpanded) ? "none" : "block";
}
if (divColl(i).className == "level2"
{
divColl(i).style.display =
(isExpanded) ? "none" : "block";
}
}
}
function showAll(){
divColl = document.getElementsByTagName("DIV"
for (i=0; i <divColl.length; i++) {
if (divColl(i).className == "LEVEL3"
{
divColl(i).style.display =
(isExpanded) ? "none" : "block";
}
if (divColl(i).className == "level2"
{
divColl(i).style.display =
(isExpanded) ? "none" : "block";
}
}
}