J
JonBosker
Hi I have a little script that works well in IE but not in FireFox
function DivExpand(obj, setting)
{
if ((setting == 'hide') || ((setting == 'swap') &&
(document.all[obj].style.display == 'block')))
document.all[obj].style.display = 'none';
else
document.all[obj].style.display = 'block';
}
can anyone please tell me what I have to change for FireFox?
And would this test do the trick?
var ns4 = (document.layers) ? true : false;
var ie4 = (document.all && !document.getElementById) ? true : false;
var ie5 = (document.all && document.getElementById) ? true : false;
var ns6 = (!document.all && document.getElementById) ? true : false;
Thanks in advance. Jon.
function DivExpand(obj, setting)
{
if ((setting == 'hide') || ((setting == 'swap') &&
(document.all[obj].style.display == 'block')))
document.all[obj].style.display = 'none';
else
document.all[obj].style.display = 'block';
}
can anyone please tell me what I have to change for FireFox?
And would this test do the trick?
var ns4 = (document.layers) ? true : false;
var ie4 = (document.all && !document.getElementById) ? true : false;
var ie5 = (document.all && document.getElementById) ? true : false;
var ns6 = (!document.all && document.getElementById) ? true : false;
Thanks in advance. Jon.