Hi
versuchs mal in etwa so :
var NS = (document.layers) ? 1:0;
var IE = (document.all) ? 1:0;
var DOM = (document.getElementById) ? 1:0;
function getObj(name) {
if (IE && document.all[name]) {return document.all[name].style;}
if (DOM && document.getElementById(eval("'"+name+"'"))) {return document.getElementById(name).style}
if (NS && document.layers[name]) {return document.layers[name];}
return 0;
}
Layer einblenden :
getObj(layerName).visibility="visible";
Layer ausblenden :
getObj(layerName).visibility="hidden";
gruss
Jens