Слои в MozilleКак сделать, чтоб в mozille показывались слои? Данный кусок кода не работает.
function init(){ if (navigator.appName == "Netscape") { layerStyleRef="layer."; layerRef="document.layers"; styleSwitch="";} else{layerStyleRef="layer.style."; layerRef="document.all"; styleSwitch=".style";} } function showLayer(layerName){eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');} function hideLayer(layerName){eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');}
В IE,NN,Opere все ОК. |