L
lawrence
Can anyone tell me why this code works in Netscape 7.1 but not in
IE???
<SCRIPT type='text/javascript'>
function makeVisible(nameOfDiv) {
document.getElementById(nameOfDiv).style.visibility='visible';
document.getElementById(nameOfDiv).style.height='auto';
if (nameOfDiv != 'weblogs')
document.getElementById('weblogs').style.visibility='hidden';
if (nameOfDiv != 'entries')
document.getElementById('entries').style.visibility='hidden';
if (nameOfDiv != 'newsletters')
document.getElementById('newsletters').style.visibility='hidden';
if (nameOfDiv != 'images')
document.getElementById('images').style.visibility='hidden';
if (nameOfDiv != 'files')
document.getElementById('files').style.visibility='hidden';
if (nameOfDiv != 'comments')
document.getElementById('comments').style.visibility='hidden';
if (nameOfDiv != 'links')
document.getElementById('links').style.visibility='hidden';
if (nameOfDiv != 'members')
document.getElementById('members').style.visibility='hidden';
if (nameOfDiv != 'design')
document.getElementById('design').style.visibility='hidden';
if (nameOfDiv != 'settings')
document.getElementById('settings').style.visibility='hidden';
if (nameOfDiv != 'categories')
document.getElementById('categories').style.visibility='hidden';
if (nameOfDiv != 'other')
document.getElementById('other').style.visibility='hidden';
if (nameOfDiv != 'weblogs')
document.getElementById('weblogs').style.height='0px'
if (nameOfDiv != 'entries')
document.getElementById('entries').style.height='0px'
if (nameOfDiv != 'newsletters')
document.getElementById('newsletters').style.height='0px'
if (nameOfDiv != 'images')
document.getElementById('images').style.height='0px'
if (nameOfDiv != 'files')
document.getElementById('files').style.height='0px'
if (nameOfDiv != 'comments')
document.getElementById('comments').style.height='0px'
if (nameOfDiv != 'links')
document.getElementById('links').style.height='0px'
if (nameOfDiv != 'members')
document.getElementById('members').style.height='0px'
if (nameOfDiv != 'design')
document.getElementById('design').style.height='0px'
if (nameOfDiv != 'settings')
document.getElementById('settings').style.height='0px'
if (nameOfDiv != 'categories')
document.getElementById('categories').style.height='0px'
if (nameOfDiv != 'other')
document.getElementById('other').style.height='0px'
document.getElementById('rightColumn').style.visibility='hidden';
document.getElementById('rightColumn').style.height='0px';
}
</script>
There are some other problems with the page, and I'm trying to fix
them one at time. Perhaps I'm fixing them in the wrong order. To see
the page, go here:
http://publicdomainsoftware.org/designer/mcControlPanel.php
You'll need a username and password to log in, so use these values:
username: designer
password: designer123
Clicking on an image is supposed to make the DIVs in the middle
visible. This works in Netscape but not IE.
IE???
<SCRIPT type='text/javascript'>
function makeVisible(nameOfDiv) {
document.getElementById(nameOfDiv).style.visibility='visible';
document.getElementById(nameOfDiv).style.height='auto';
if (nameOfDiv != 'weblogs')
document.getElementById('weblogs').style.visibility='hidden';
if (nameOfDiv != 'entries')
document.getElementById('entries').style.visibility='hidden';
if (nameOfDiv != 'newsletters')
document.getElementById('newsletters').style.visibility='hidden';
if (nameOfDiv != 'images')
document.getElementById('images').style.visibility='hidden';
if (nameOfDiv != 'files')
document.getElementById('files').style.visibility='hidden';
if (nameOfDiv != 'comments')
document.getElementById('comments').style.visibility='hidden';
if (nameOfDiv != 'links')
document.getElementById('links').style.visibility='hidden';
if (nameOfDiv != 'members')
document.getElementById('members').style.visibility='hidden';
if (nameOfDiv != 'design')
document.getElementById('design').style.visibility='hidden';
if (nameOfDiv != 'settings')
document.getElementById('settings').style.visibility='hidden';
if (nameOfDiv != 'categories')
document.getElementById('categories').style.visibility='hidden';
if (nameOfDiv != 'other')
document.getElementById('other').style.visibility='hidden';
if (nameOfDiv != 'weblogs')
document.getElementById('weblogs').style.height='0px'
if (nameOfDiv != 'entries')
document.getElementById('entries').style.height='0px'
if (nameOfDiv != 'newsletters')
document.getElementById('newsletters').style.height='0px'
if (nameOfDiv != 'images')
document.getElementById('images').style.height='0px'
if (nameOfDiv != 'files')
document.getElementById('files').style.height='0px'
if (nameOfDiv != 'comments')
document.getElementById('comments').style.height='0px'
if (nameOfDiv != 'links')
document.getElementById('links').style.height='0px'
if (nameOfDiv != 'members')
document.getElementById('members').style.height='0px'
if (nameOfDiv != 'design')
document.getElementById('design').style.height='0px'
if (nameOfDiv != 'settings')
document.getElementById('settings').style.height='0px'
if (nameOfDiv != 'categories')
document.getElementById('categories').style.height='0px'
if (nameOfDiv != 'other')
document.getElementById('other').style.height='0px'
document.getElementById('rightColumn').style.visibility='hidden';
document.getElementById('rightColumn').style.height='0px';
}
</script>
There are some other problems with the page, and I'm trying to fix
them one at time. Perhaps I'm fixing them in the wrong order. To see
the page, go here:
http://publicdomainsoftware.org/designer/mcControlPanel.php
You'll need a username and password to log in, so use these values:
username: designer
password: designer123
Clicking on an image is supposed to make the DIVs in the middle
visible. This works in Netscape but not IE.