Delta
31-08-2005, 21:29
Fiz uma página em HTML/DHTML com alguma coisa em javascript
trata-se de um menu
no IE6 funciona impecavelmente
no Mozilla aparece tudo desconfigurado
que comandos estou a dar que são incompatíveis ?
==================
Código da página
==================
<html>
<head>
<STYLE>
a {color:#D4D4D4;font-family:Times New Roman;font-weight:bold;text-decoration:none}
#menuprincipal {position:absolute;top:90;left:350;z-index:10}
#menu1 {position:absolute;left:3;top:31;visibility:hidden }
#bckgrd1 {position:absolute;left:15;top:15;z-index:0;filter:alpha(opacity=70)}
#menu2 {position:absolute;left:115;top:31;visibility:hidd en}
#bckgrd2 {position:absolute;left:15;top:15;z-index:0;filter:alpha(opacity=70)}
#menu3 {position:absolute;left:227;top:31;visibility:hidd en}
#bckgrd3 {position:absolute;left:15;top:20;z-index:0;filter:alpha(opacity=70)}
#menu4 {position:absolute;left:339;top:31;visibility:hidd en}
#bckgrd4 {position:absolute;left:15;top:15;z-index:0;filter:alpha(opacity=70)}
#menu5 {position:absolute;left:452;top:31;visibility:hidd en}
#bckgrd5 {position:absolute;left:15;top:15;z-index:0;filter:alpha(opacity=70)}
#mapbox {position:absolute;left:10;top:30;visibility:hidde n;z-index:12}
#bckgrdmap {position:absolute;left:15;top:20;z-index:0;filter:alpha(opacity=70)}
</STYLE>
<title></title>
</head>
<SCRIPT Language="JavaScript">
function showmenu(id) {
document.all(id).style.visibility='visible';
}
function hidemenu(id) {
document.all(id).style.visibility='hidden';
}
</SCRIPT>
<body>
<table id="menuprincipal" width="520">
<tr>
<td width="100">
<table bgcolor="#FF0000" border="2" width="100" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr>
<td id="m1" style="cursor:hand" onmouseover="showmenu('menu1');this.bgColor='#AA0000';" onmouseout="hidemenu('menu1');this.bgColor='#FF0000';"><center><a href="#">Novas</a></center>
<!-- SUBMENU 1 -->
<DIV id="menu1">
<DIV style="position:absolute;z-index:4">
<table border="2" bgcolor="#FF0000" width="180" height="200" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="./usadas.htm">Lista de Usados</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="./usadas.htm">Lista de Usados</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="./usadas.htm">Lista de Usados</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="./usadas.htm">Lista de Usados</center></a></td></tr>
</table>
</DIV>
<DIV id="bckgrd1">
<table border="0" bgcolor="#804040" width="180" height="203">
<tr><td> </td></tr>
</table>
</DIV>
</DIV>
</td>
</tr>
</table>
</td>
<td width="5"> </td>
<td width="100">
<table bgcolor="#FF0000" border="2" width="100" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr>
<td id="m2" style="cursor:hand" onmouseover="showmenu('menu2');this.bgColor='#AA0000';" onmouseout="hidemenu('menu2');this.bgColor='#FF0000';"><center><a href="#">Usadas</a></center>
<!-- SUBMENU 2 -->
<DIV id="menu2">
<DIV style="position:absolute;z-index:4">
<table border="2" bgcolor="#FF0000" width="180" height="30" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="./usadas.htm">Lista de Usados</center></a></td></tr>
</table>
</DIV>
<DIV id="bckgrd2">
<table border="0" bgcolor="#804040" width="180" height="32">
<tr><td> </td></tr>
</table>
</DIV>
</DIV>
</td>
</tr>
</table>
</td>
<td width="5"> </td>
<td width="100">
<table bgcolor="#FF0000" border="2" width="100" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr>
<td id="m3" style="cursor:hand" onmouseover="showmenu('menu3');this.bgColor='#AA0000'" onmouseout="hidemenu('menu3');this.bgColor='#FF0000'"><center><a href="#">Acessórios</a></center>
<!-- SUBMENU 3 -->
<DIV id="menu3">
<DIV style="position:absolute;z-index:4">
<table border="2" bgcolor="#FF0000" width="180" height="320" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Acessórios</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Bagagem</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Blusões</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Botas</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Calças</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Capacetes</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Fatos</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Impermeáveis</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Luvas</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Óculos</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Protecções</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Outros</center></a></td></tr>
</table>
</DIV>
<DIV id="bckgrd3">
<table border="0" bgcolor="#804040" width="180" height="320">
<tr><td> </td></tr>
</table>
</DIV>
</DIV>
</td>
</tr>
</table>
</td>
<td width="5"> </td>
<td width="100">
<table bgcolor="#FF0000" border="2" width="100" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr>
<td id="m4" style="cursor:hand" onmouseover="showmenu('menu4');this.bgColor='#AA0000'" onmouseout="hidemenu('menu4');this.bgColor='#FF0000'"><center><a href="#">Serviços</a></center>
<!-- SUBMENU 4 -->
<DIV id="menu4">
<DIV style="position:absolute;z-index:4">
<table border="2" bgcolor="#FF0000" width="180" height="60" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="http://www.cetelem.pt/">Concessão de Crédito</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Mais Serviços</center></a></td></tr>
</table>
</DIV>
<DIV id="bckgrd4">
<table border="0" bgcolor="#804040" width="180" height="65">
<tr><td> </td></tr>
</table>
</DIV>
</DIV>
</td>
</tr>
</table>
</td>
<td width="5"> </td>
<td width="100">
<table bgcolor="#FF0000" border="3" width="100" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr>
<td id="m5" style="cursor:hand" onmouseover="showmenu('menu5');this.bgColor='#AA0000'" onmouseout="hidemenu('menu5');this.bgColor='#FF0000'"><center><a href="#">Links</a></center>
<!-- SUBMENU 5 -->
<DIV id="menu5">
<DIV style="position:absolute;z-index:4">
<table border="2" bgcolor="#FF0000" width="180" height="140" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'" onclick="javascript:window.open('http://www.yamaha-motor.pt')"><center><a href="#">Yamaha</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'" onclick="javascript:window.open('http://www.yamaha-racing.com')"><center><a href="#">Yamaha Racing</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'" onclick="javascript:window.open('http://www.motorcycledaily.com')"><center><a href="#">Motorcycle Daily</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'" onclick="javascript:window.open('http://www.cyclenews.com')"><center><a href="#">Cycle News</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'" onclick="javascript:window.open('http://motojornal.pt')"><center><a href="#">Moto Jornal</center></a></td></tr>
</table>
</DIV>
<DIV id="bckgrd5">
<table border="0" bgcolor="#804040" width="180" height="145">
<tr><td> </td></tr>
</table>
</DIV>
</DIV>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
trata-se de um menu
no IE6 funciona impecavelmente
no Mozilla aparece tudo desconfigurado
que comandos estou a dar que são incompatíveis ?
==================
Código da página
==================
<html>
<head>
<STYLE>
a {color:#D4D4D4;font-family:Times New Roman;font-weight:bold;text-decoration:none}
#menuprincipal {position:absolute;top:90;left:350;z-index:10}
#menu1 {position:absolute;left:3;top:31;visibility:hidden }
#bckgrd1 {position:absolute;left:15;top:15;z-index:0;filter:alpha(opacity=70)}
#menu2 {position:absolute;left:115;top:31;visibility:hidd en}
#bckgrd2 {position:absolute;left:15;top:15;z-index:0;filter:alpha(opacity=70)}
#menu3 {position:absolute;left:227;top:31;visibility:hidd en}
#bckgrd3 {position:absolute;left:15;top:20;z-index:0;filter:alpha(opacity=70)}
#menu4 {position:absolute;left:339;top:31;visibility:hidd en}
#bckgrd4 {position:absolute;left:15;top:15;z-index:0;filter:alpha(opacity=70)}
#menu5 {position:absolute;left:452;top:31;visibility:hidd en}
#bckgrd5 {position:absolute;left:15;top:15;z-index:0;filter:alpha(opacity=70)}
#mapbox {position:absolute;left:10;top:30;visibility:hidde n;z-index:12}
#bckgrdmap {position:absolute;left:15;top:20;z-index:0;filter:alpha(opacity=70)}
</STYLE>
<title></title>
</head>
<SCRIPT Language="JavaScript">
function showmenu(id) {
document.all(id).style.visibility='visible';
}
function hidemenu(id) {
document.all(id).style.visibility='hidden';
}
</SCRIPT>
<body>
<table id="menuprincipal" width="520">
<tr>
<td width="100">
<table bgcolor="#FF0000" border="2" width="100" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr>
<td id="m1" style="cursor:hand" onmouseover="showmenu('menu1');this.bgColor='#AA0000';" onmouseout="hidemenu('menu1');this.bgColor='#FF0000';"><center><a href="#">Novas</a></center>
<!-- SUBMENU 1 -->
<DIV id="menu1">
<DIV style="position:absolute;z-index:4">
<table border="2" bgcolor="#FF0000" width="180" height="200" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="./usadas.htm">Lista de Usados</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="./usadas.htm">Lista de Usados</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="./usadas.htm">Lista de Usados</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="./usadas.htm">Lista de Usados</center></a></td></tr>
</table>
</DIV>
<DIV id="bckgrd1">
<table border="0" bgcolor="#804040" width="180" height="203">
<tr><td> </td></tr>
</table>
</DIV>
</DIV>
</td>
</tr>
</table>
</td>
<td width="5"> </td>
<td width="100">
<table bgcolor="#FF0000" border="2" width="100" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr>
<td id="m2" style="cursor:hand" onmouseover="showmenu('menu2');this.bgColor='#AA0000';" onmouseout="hidemenu('menu2');this.bgColor='#FF0000';"><center><a href="#">Usadas</a></center>
<!-- SUBMENU 2 -->
<DIV id="menu2">
<DIV style="position:absolute;z-index:4">
<table border="2" bgcolor="#FF0000" width="180" height="30" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="./usadas.htm">Lista de Usados</center></a></td></tr>
</table>
</DIV>
<DIV id="bckgrd2">
<table border="0" bgcolor="#804040" width="180" height="32">
<tr><td> </td></tr>
</table>
</DIV>
</DIV>
</td>
</tr>
</table>
</td>
<td width="5"> </td>
<td width="100">
<table bgcolor="#FF0000" border="2" width="100" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr>
<td id="m3" style="cursor:hand" onmouseover="showmenu('menu3');this.bgColor='#AA0000'" onmouseout="hidemenu('menu3');this.bgColor='#FF0000'"><center><a href="#">Acessórios</a></center>
<!-- SUBMENU 3 -->
<DIV id="menu3">
<DIV style="position:absolute;z-index:4">
<table border="2" bgcolor="#FF0000" width="180" height="320" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Acessórios</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Bagagem</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Blusões</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Botas</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Calças</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Capacetes</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Fatos</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Impermeáveis</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Luvas</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Óculos</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Protecções</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Outros</center></a></td></tr>
</table>
</DIV>
<DIV id="bckgrd3">
<table border="0" bgcolor="#804040" width="180" height="320">
<tr><td> </td></tr>
</table>
</DIV>
</DIV>
</td>
</tr>
</table>
</td>
<td width="5"> </td>
<td width="100">
<table bgcolor="#FF0000" border="2" width="100" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr>
<td id="m4" style="cursor:hand" onmouseover="showmenu('menu4');this.bgColor='#AA0000'" onmouseout="hidemenu('menu4');this.bgColor='#FF0000'"><center><a href="#">Serviços</a></center>
<!-- SUBMENU 4 -->
<DIV id="menu4">
<DIV style="position:absolute;z-index:4">
<table border="2" bgcolor="#FF0000" width="180" height="60" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="http://www.cetelem.pt/">Concessão de Crédito</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'"><center><a href="servicos.htm">Mais Serviços</center></a></td></tr>
</table>
</DIV>
<DIV id="bckgrd4">
<table border="0" bgcolor="#804040" width="180" height="65">
<tr><td> </td></tr>
</table>
</DIV>
</DIV>
</td>
</tr>
</table>
</td>
<td width="5"> </td>
<td width="100">
<table bgcolor="#FF0000" border="3" width="100" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr>
<td id="m5" style="cursor:hand" onmouseover="showmenu('menu5');this.bgColor='#AA0000'" onmouseout="hidemenu('menu5');this.bgColor='#FF0000'"><center><a href="#">Links</a></center>
<!-- SUBMENU 5 -->
<DIV id="menu5">
<DIV style="position:absolute;z-index:4">
<table border="2" bgcolor="#FF0000" width="180" height="140" BORDERCOLORLIGHT="#FF8080" BORDERCOLORDARK="#AA0000">
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'" onclick="javascript:window.open('http://www.yamaha-motor.pt')"><center><a href="#">Yamaha</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'" onclick="javascript:window.open('http://www.yamaha-racing.com')"><center><a href="#">Yamaha Racing</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'" onclick="javascript:window.open('http://www.motorcycledaily.com')"><center><a href="#">Motorcycle Daily</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'" onclick="javascript:window.open('http://www.cyclenews.com')"><center><a href="#">Cycle News</center></a></td></tr>
<tr><td onmouseover="this.bgColor='#AA0000'" onmouseout="this.bgColor='#FF0000'" onclick="javascript:window.open('http://motojornal.pt')"><center><a href="#">Moto Jornal</center></a></td></tr>
</table>
</DIV>
<DIV id="bckgrd5">
<table border="0" bgcolor="#804040" width="180" height="145">
<tr><td> </td></tr>
</table>
</DIV>
</DIV>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>