|
Q944 In Netscape CSS can be switched off, is it possible to detect this?
irt.org | Knowledge Base | DHTML | Q944 [ previous next ]
Q944 In Netscape CSS can be switched off, is it possible to detect this?
Yes its possible. Just check for a layer object before attempting to
manipulate it, for example:
<script language="JavaScript"><!--
function show(object) {
if (document.layers && document.layers[object] != null)
document.layers[object].visibility = 'visible';
else if (document.all)
document.all[object].style.visibility = 'visible';
}
function hide(object) {
if (document.layers && document.layers[object] != null)
document.layers[object].visibility = 'hidden';
else if (document.all)
document.all[object].style.visibility = 'hidden';
}
//--></script>
|
|
|
Copyright © 1996-2009 irt.org, All Rights Reserved.