Hi !!
Hier mal ein Beispielscript: (hab ich eben schnell zusammengetackert... hoffe das funzt)
Ich denke darauf kann man aufbauenCode:<html> <head> <title>Ebenen</title> <script language="JavaScript"> if (document.all) {layerRef = 'document.all("'; styleSwitch = '").style';} if (document.getElementById) {layerRef = 'document.getElementById("'; styleSwitch = '").style';} if (document.layers) {layerRef = 'document.layers["'; styleSwitch = '"]';} function checkvisibility(layerName) { eval('status = '+layerRef+layerName+styleSwitch+'.visibility'); if(status == 'visible') { alert("Sichtbar!"); } else { alert("Unsichtbar !"); } } </script> </head> <body> <div id="lay1" style="position:absolute; left:100; top:150; z-Index:10; visibility: hidden;">Ebene 1</div> <div id="lay2" style="position:absolute; left:200; top:50; z-Index:10; visibility: visible;">Ebene 2</div> <div id="lay3" style="position:absolute; left:300; top:250; z-Index:10; visibility: visible;">Ebene 3</div> <a href="javascript:checkvisibility('lay1');">Ebene 1?</a><br> <a href="javascript:checkvisibility('lay2');">Ebene 2?</a><br> <a href="javascript:checkvisibility('lay3');">Ebene 3?</a><br> </body> </html>
Gruß Jan


LinkBack URL
About LinkBacks
Zitieren
