Ich möchte gerne das wenn man mit der Maus über einen Link kommt sich ein Untermenü öffnet
Dieses Untermenü sitzt aber an einer anderen Stelle in der Seite(anderen Tabelle)
Ich habe schon mal mit den JS Scrip angefangen
Code
<script language="JavaScript">
function clean ()
{
if ((navigator.appName=='Netscape') && (navigator.appVersion.charAt (0)<'5'))
{
window.document.b.visibility="hide";
window.document.m1.visibility="hide";
window.document.m2.visibility="hide";
window.document.m3.visibility="hide";
return;
}
if (navigator.appVersion.charAt (0)<'5')
{
var layers=document.all.tags ("div");
}
else {
var layers=document.getElementsByTagName("div");
}
layers[0].style.visibility='hidden';
layers[2].style.visibility='hidden';
layers[4].style.visibility='hidden';
layers[6].style.visibility='hidden';
return;
}
function menu (i)
{
switch(i)
{
case 1:
{
if ((navigator.appName=='Netscape') && (navigator.appVersion.charAt(0)<'5'))
{
window.document.b.visibility="show";
window.document.m1.visibility="show";
window.document.m2.visibility="hide";
window.document.m3.visibility="hide";
return;
}
if (navigator.appVersion.charAt (0)<'5')
{
var layers=document.all.tags ("div");
}
else {
var layers=document.getElementsByTagName("div");
}
layers[0].style.visibility='visible';
layers[2].style.visibility='visible';
layers[4].style.visibility='hidden';
// layers[6].style.visibility='hidden';
return;
}
case 2:
{
if ((navigator.appName=='Netscape') && (navigator.appVersion.charAt(0)<'5'))
{
window.document.b.visibility="show";
window.document.m1.visibility="hide";
window.document.m2.visibility="show";
window.document.m3.visibility="hide";
return;
}
if (navigator.appVersion.charAt (0)<'5')
{
var layers=document.all.tags ("div");
}
else {
var layers=document.getElementsByTagName("div");
}
layers[0].style.visibility='visible';
layers[2].style.visibility='hidden';
layers[4].style.visibility='visible';
layers[6].style.visibility='hidden';
return;
}
case 3:
{
if ((navigator.appName=='Netscape') && (navigator.appVersion.charAt(0)<'5'))
{
window.document.b.visibility="show";
window.document.m1.visibility="hide";
window.document.m2.visibility="hide";
window.document.m3.visibility="show";
return;
}
if (navigator.appVersion.charAt (0)<'5')
{
var layers=document.all.tags ("div");
}
else {
var layers=document.getElementsByTagName("div");
}
layers[0].style.visibility='visible';
layers[2].style.visibility='hidden';
layers[4].style.visibility='hidden';
layers[6].style.visibility='visible';
return;
}
}
}
</script>
Alles anzeigen
Hier mein HTML Code:
Code
<table width="616" align="center">
<tr>
<td width="40"></td>
<td width="120" height="32">
<div id="h3" style="z-index:2;visibility:visible;background-color:#999999" >
[url='#']Über mich[/url]
</div>
</td>
<td width="40"></td>
<td width="175" height="32">
<div id="h2" style="z-index:2;visibility:visible;background-color:#999999" >
[url='#']Sicherheit im www[/url]
</div>
</td>
<td width="40"></td>
<td width="120">
<div id="h3" style="z-index:2;visibility:visible;background-color:#999999" >
[url='#']Links/Partner[/url]
</div>
</td>
<td width="40">
</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
<td height="45">
<table width="710">
<tr>
<td width="105"></td>
<td width="146" height="32">
<div id="m1" style="z-index:3;visibility:hidden;background-color:#999999" >
[*][url='www.sdas..de']Person[/url]
[*][url='wwww.sd.dw']Ort[/url]
[*][url='www.sdas..de']Person[/url]
[*][url='wwww.sd.dw']Laufbahn[/url]
</div>
</td>
<td width="37"></td>
<td width="171" height="32">
<div id="m2" style="z-index:3;visibility:hidden;background-color:#999999" >
[*][url='hilfe_bei_virus']Hilfe bei Virus[/url]
[*][url='alle_virenarten']Alle Virenarten[/url]
</div>
</td>
<td width="42"></td>
<td width="116" height="32">
<div id="m3" style="z-index:3;visibility:hidden;background-color:#999999" >
[*][url='www.sdas..de']1.Link[/url]
[*][url='wwww.sd.dw']2.Link[/url]
</div>
</td>
<td width="61"></td>
</tr>
</table>
Alles anzeigen
Es öffnet sich nie die richtigen Untermenüs bzw verschwindet ein Menüpunkt