Hi,
eigentlich dachte ich, dass die neuere Netscape-Versionen kompatibler oder auch toleranter sind, was Layer etc. angeht! Aber dem ist wohl nicht so...
Wisst Ihr vielleicht, was ich an folgendem Quelltext ändern muss, dass es auch bei Netscape 6 und Netscape 7 läuft?
Wäre super klasse!!!
Zitat:
<body bgcolor="#000000" text="#ffffff" link="#ff5555" alink="#ff0000" vlink="#999999" onload="init()">
<script LANGUAGE="JavaScript">
var visibleVar="null";
function init(){
if (navigator.appName == "Netscape") {
layerStyleRef="layer.";
layerRef="document.layers";
styleSwitch="";
visibleVar="show";
}
else{
layerStyleRef="layer.style.";
layerRef="document.all";
styleSwitch=".style";
visibleVar="visible";
}
}
function showHideLayerSwitch(layerName){
if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility == visibleVar')){
hideLayer(layerName);
}
else{
showLayer(layerName);
}
}
function showLayer(layerName){
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
}
function hideLayer(layerName){
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}
function showLayer1(layerName){
if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility == visibleVar')){
showLayer(layerName);
}
}
function hideLayer1(layerName){
if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility == visibleVar')){
hideLayer(layerName);
}
}
</SCRIPT>
<style TYPE="text/css">
#pulldownButton {position: absolute; z-index: 59800; left: 100px; top: 60px;}
#pulldownMenu {position: absolute; z-index: 59900; visibility: hidden; left: 100px; top: 116px;}
</STYLE>
<div id="pulldownButton" >
<a href="javascript:showHideLayerSwitch('pulldownMenu');"><img SRC="a.gif" BORDER=0></a>
</div>
<div id="pulldownMenu">
<table cellpadding=1 width=300 border=1>
<tr>
<td width="100"><b><center>Die 1. Links</center></b></td>
<td width="100"><b><center>Die 2. Links</center></b></td>
<td width="100"><b><center>Die 3. Links</center></b></td>
</tr>
</table>
</div>
|
Euch schon mal vielen Dank!
Gruss,
muffinOTR