Hi,
Thanks for any help in advance... Okay, I have the JS listed
below that calls for the display of the (DIV) tag... cookie
function not included, as don't feel its necessary but you'll
get the idea!
function closeall()
{
var objs;
if (document.all)
{ objs = document.all.tags("DIV");
alert('1all')
}
else if (document.getElementsByTagName)
{ objs = document.getElementsByTagName("DIV");
alert('1getElement')
}
else if (document.layers)
{ objs = document.layers["DIV"];
alert('1Layers')
}
else
{ alert('Sorry, Your browser does not support our Main
Navigation system'); }
for (var i=0; i<objs.length; i++) {
if (objs[i].className = "small")
{
objs[i].style.display = "none";
}
}
}
function expandDiv(tahw) {
setCookie("thingsmenu", tahw, 7);
closeall();
what = tahw + "_menu"
if (document.all(what).style.display = "none") {
document.all(what).style.display = "";
alert('2all')
}
else if (document.getElementsByTagName(what).style.display =
"none") {
document.getElementsByTagName(what).style.display = "";
alert('2getElement')
}
else { document.layers(what).style.display = "none";
alert('2layers')
}
}
function setmenu()
{
var menuvar;
menuvar = getCookie("thingsmenu");
expandDiv(menuvar);
}
This works both in IE and Firefox but not Netscape...
The results from the alerts (placed for debug) are as follows
IE: 1all - 2all
FireFox: 1getElement - 2all
NS: 1getElement - then returns nothing!!
Not convinced that Firefox is right - why 1getElement the 2all?
Anyhow it works.. just need to get Netscape working, any ideas?
Appreciate it
----------------------------------------------
Posted with NewsLeecher v2.0 Beta 5
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------