Why don't these things work in Netscape?

liunx

Guest
I've got these two functions that allow me to hide and show tables for expanding folders and menus.<br />
They work fine in IE, but not in Netscape.<br />
Can anybody tell me why?<br />
<br />
function toggleFolder(folderSection, folderImage)<br />
{<br />
if (folderSection.style.display=="none")<br />
{<br />
folderSection.style.display=""<br />
folderImage.src=http://www.htmlforums.com/archive/index.php/openFolder.src<br />
}<br />
else<br />
{<br />
folderSection.style.display="none"<br />
folderImage.src=http://www.htmlforums.com/archive/index.php/closedFolder.src<br />
}<br />
}<br />
<br />
<br />
function expandMenu(menuName)<br />
{<br />
if (menuName.style.display=="none")<br />
menuName.style.display=""<br />
else<br />
menuName.style.display="none"<br />
}<!--content-->since you posted this in cross platofrm layout, I'll close this one down.<!--content-->
 
Back
Top