Scretchy
05-01-2006, 17:27
Hallo!
ich arbeite gerade an meiner Seite (http://www.scretchy.de) ! Nun habe ich vor ein paar tagen ein Submenü eingebaut, aber es schließt sich nciht wieder!
Hier mal der vereinfachte Code!
<head>
<style type="text/css">
<!--
.aufklappen { border: 2px solid #303000; background-color: #909090; font-family: Arial, Helvetica, sans-serif; color: #003366;; font-size: 11px; }
a:link { color: #000000; text-decoration: none; }
a:visited { color: #000000; text-decoration:none; }
a:active { color: #ffffff; text-decoration:underline;}
a:hover { color: #ffffff; text-decoration:underline;}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function finden(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=finden(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function showhidelayers() { //v6.0
var i,p,v,obj,args=showhidelayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=finden(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
function meinmenue(m) { //v1.0 :)
i=1;
while ( i <= 20 ) {
eval ("showhidelayers('hover_"+i+"','','hide');");
eval ("showhidelayers('menu_"+i+"','','hide');");
i++;
}
if (m > 0) {
eval ("showhidelayers('hover_"+m+"','','show');");
eval ("showhidelayers('menu_"+m+"','','show');");
}
}
//-->
</script>
</head>
<body>
<a href="#" onmouseover="meinmenue('1'); L1.src='http://www.scretchy.de/Images/navi_button_links_over.gif'" onmouseout="L1.src='http://www.scretchy.de/Images/navi_button_links.gif'"><img border="0" src="http://www.scretchy.de/Images/navi_button_links.gif" name="L1"/></a>
<div id="menu_1" style=" position:absolute; width:125px; height:10px; z-index:5; left:193px; top:150px; visibility:hidden;">
<table class="aufklappen" width="125" cellpadding="2" cellspacing="0">
<tr><td width="125"> <a href="http://www.google.de" target="hauptframe">Google</a></td></tr>
<tr><td width="125"> <a href="http://" target="hauptframe">1.2</a></td></tr>
<tr><td width="125"> <a href="http://" target="hauptframe">1.3</a></td></tr>
<tr><td width="125"> <a href="http://" target="hauptframe">1.4</a></td></tr>
</table>
</div>
Kann mir einer sagen woran es liegt?
MFG Scretchy
ich arbeite gerade an meiner Seite (http://www.scretchy.de) ! Nun habe ich vor ein paar tagen ein Submenü eingebaut, aber es schließt sich nciht wieder!
Hier mal der vereinfachte Code!
<head>
<style type="text/css">
<!--
.aufklappen { border: 2px solid #303000; background-color: #909090; font-family: Arial, Helvetica, sans-serif; color: #003366;; font-size: 11px; }
a:link { color: #000000; text-decoration: none; }
a:visited { color: #000000; text-decoration:none; }
a:active { color: #ffffff; text-decoration:underline;}
a:hover { color: #ffffff; text-decoration:underline;}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function finden(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=finden(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function showhidelayers() { //v6.0
var i,p,v,obj,args=showhidelayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=finden(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
function meinmenue(m) { //v1.0 :)
i=1;
while ( i <= 20 ) {
eval ("showhidelayers('hover_"+i+"','','hide');");
eval ("showhidelayers('menu_"+i+"','','hide');");
i++;
}
if (m > 0) {
eval ("showhidelayers('hover_"+m+"','','show');");
eval ("showhidelayers('menu_"+m+"','','show');");
}
}
//-->
</script>
</head>
<body>
<a href="#" onmouseover="meinmenue('1'); L1.src='http://www.scretchy.de/Images/navi_button_links_over.gif'" onmouseout="L1.src='http://www.scretchy.de/Images/navi_button_links.gif'"><img border="0" src="http://www.scretchy.de/Images/navi_button_links.gif" name="L1"/></a>
<div id="menu_1" style=" position:absolute; width:125px; height:10px; z-index:5; left:193px; top:150px; visibility:hidden;">
<table class="aufklappen" width="125" cellpadding="2" cellspacing="0">
<tr><td width="125"> <a href="http://www.google.de" target="hauptframe">Google</a></td></tr>
<tr><td width="125"> <a href="http://" target="hauptframe">1.2</a></td></tr>
<tr><td width="125"> <a href="http://" target="hauptframe">1.3</a></td></tr>
<tr><td width="125"> <a href="http://" target="hauptframe">1.4</a></td></tr>
</table>
</div>
Kann mir einer sagen woran es liegt?
MFG Scretchy
