![]()
Not hidden
This image is a PNG file that is made transparent by pngfix.js which means it is displayed with alpha support in IE6 |
display: none;
In IE6, the image above will not appear, since it has been replaced by a DIV, which stays hidden if the containing DIV starts out as display: none. Display image |
visibility: hidden;
In IE6, the image above will appear, since the layer is visibility: hidden. Unfortunately, this means that it will occupy the same space even when not shown. Display image |
function toggle(stuff) {
var a = stuff.split(',');
var which;
var objLayer;
for (var i = 0; i < a.length; i++){
which = a[i];
objLayer = document.all ? document.all[which] : document.getElementById(which);
if (objLayer.style.visibility != "" && objLayer.style.visibility != "hidden"){
objLayer.style.visibility="hidden";
objLayer.style.display="none";
} else {
objLayer.style.visibility="visible";
objLayer.style.display="block";
}
}
}
