erickmm Postado Junho 21, 2007 Denunciar Share Postado Junho 21, 2007 OláCriei um menu com layer, só que quando troco de resoluçãoele sai todo do lugar, alguém sabe me dizer oque é?já procurei e não achei nada, vou postar o codigo<html> <head> <title>home.gif</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- Fireworks MX Dreamweaver MX target. Created Tue Jun 19 00:19:38 GMT-0300 (Hora oficial do Brasil) 2007--> <script language="JavaScript"> <!-- function MM_findObj(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=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_findObj(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=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <script language="JavaScript"> function popup(url,n,t) { window.open(url,n,t); } </script> <script> <!-- window.defaultStatus="TESTE" function MM_showHideLayers() { //v6.0 var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; } obj.visibility=v; } } //--> </script> <!-- inicio menu --> <STYLE TYPE="text/css"> <!-- A:link {color:#FFFFFF;} A:visited { color: #FFFFFF; } A:hover {color:#FFCC00; TEXT-DECORATION: underline} A:active {color:#FFCC00;} A { TEXT-DECORATION:none; } --> </STYLE> </head> <body bgcolor="#000000" background="imagens/fundo.jpg" text="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('imagens/home_r2_c1_f2.gif');"> <center> <div id="Layer1" onMouseOver="MM_showHideLayers('Layer1','','show')" onMouseOut="MM_showHideLayers('Layer1','','hide')" style="position:absolute; left:226px; top:384px; width:139px; z-index:1; visibility: hidden; height: 71px;"> <table width="139" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#000000"> <!--DWLayoutTable--> <tr> <td width="135" height="18" ><font size="3"> <a href="file:///C|/Inetpub/wwwroot/historia.htm" class="texto_menu">Anúncios</a></font></td> </tr> <tr> <td height="1" bordercolor="#FFCC00" ></td> </tr> <tr> <td height="18" ><font size="3"> <a href="file:///C|/Inetpub/wwwroot/missao.htm" class="texto_menu">Fotos de Casal</a></font></td> </tr> <tr> <td height="1" bordercolor="#FFCC00" ></td> </tr> <tr> <td height="18" ><font size="3"> <a href="file:///C|/Inetpub/wwwroot/localizacao.htm" class="texto_menu">Álbum de Fotos</a></font></td> </tr> <tr> <td height="1" bordercolor="#FFCC00" ></td> </tr> </table> </div> <div id="Layer2" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer2','','show')" onMouseOut="MM_showHideLayers('Layer1','','hide','Layer2','','hide')" style="position:absolute; left:294px; top:386px; width:159px; z-index:5; height: 83px; visibility: hidden;"> <table width="158" height="79" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#000000"> <!--DWLayoutTable--> <tr> <td width="154" height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_objetivo.htm" class="texto_menu">Amadoras</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_documentos.htm" class="texto_menu">Profissionais</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_minuta.htm" class="texto_menu">Flagras das Famosas</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_campanhas.htm" class="texto_menu">Hentay Erótico</a></span></font></td> </tr> <tr> <td height="1" valign="middle" bordercolor="#3E81B8" ></td> </tr> <tr> <td height="1" ></td> </tr> </table> </div> <div id="Layer3" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer3','','show')" onMouseOut="MM_showHideLayers('Layer1','','hide','Layer3','','hide')" style="position:absolute; left:337px; top:387px; width:118px; z-index:4; height: 53px; visibility: hidden;"> <table width="114" height="39" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#000000"> <!--DWLayoutTable--> <tr> <td width="154" height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_objetivo.htm" class="texto_menu">Amadores</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_documentos.htm" class="texto_menu">Profissionais</a></span></font></td> </tr> </table> </div> <div id="Layer4" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer3','','hide','Layer4','','show')" onMouseOut="MM_showHideLayers('Layer1','','hide','Layer3','','hide','Layer4','','hide')" style="position:absolute; left:393px; top:387px; width:141px; z-index:5; height: 140px; visibility: hidden;"> <table width="135" height="141" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#000000"> <!--DWLayoutTable--> <tr> <td width="198" height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_objetivo.htm" class="texto_menu">Vídeo Chat</a></span></font></td> </tr> <tr> <td height="1" valign="middle" bordercolor="#3E81B8" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_documentos.htm" class="texto_menu">Jogos Eróticos</a></span> </font></td> </tr> <tr> <td height="1" valign="middle" bordercolor="#3E81B8" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_minuta.htm" class="texto_menu">Contos Eróticos</a></span></font></td> </tr> <tr> <td height="1" valign="middle" bordercolor="#3E81B8" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_campanhas.htm" class="texto_menu">Mural</a></span></font></td> </tr> <tr> <td height="1" valign="middle" bordercolor="#3E81B8" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_campanhas.htm" class="texto_menu">Piadas</a> Quentes</span></font></td> </tr> <tr> <td height="1" valign="middle" bordercolor="#3E81B8" ></td> </tr> <tr> <td height="21" valign="middle" ><font size="3"><span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_campanhas.htm" class="texto_menu">Quadrinhos</a> Eróticos</span></font></td> </tr> </table> </div> <div id="Layer5" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer3','','hide','Layer4','','hide','Layer5','','show')" onMouseOut="MM_showHideLayers('Layer1','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide')" style="position:absolute; left:457px; top:385px; width:144px; z-index:6; height: 83px; visibility: hidden;"> <table width="142" height="117" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"> <!--DWLayoutTable--> <tr> <td width="198" height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_objetivo.htm" class="texto_menu">Posições Sexuais</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_documentos.htm" class="texto_menu">Dicionário Sexual</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_minuta.htm" class="texto_menu">Núdismo</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_campanhas.htm" class="texto_menu">Zonas Erógenas</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/credenciado_contas.htm" class="texto_menu">Postura Swing</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/credenciado_rotinas.htm" class="texto_menu">Dogging</a></span></font></td> </tr> <tr> <td height="1" valign="middle" bordercolor="#3E81B8" ></td> </tr> <tr> <td height="1" ></td> </tr> </table> </div> <div id="Layer6" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer3','','hide','Layer6','','show')" onMouseOut="MM_showHideLayers('Layer1','','hide','Layer3','','hide','Layer6','','hide')" style="position:absolute; left:523px; top:389px; width:115px; z-index:5; height: 43px; visibility: hidden;"> <table width="114" height="40" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"> <!--DWLayoutTable--> <tr> <td width="198" height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_objetivo.htm" class="texto_menu">Fênix Club</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_documentos.htm" class="texto_menu">Outras Festas</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="1" valign="middle" bordercolor="#3E81B8" ></td> </tr> <tr> <td height="1" ></td> </tr> </table> </div> <div id="Layer7" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer3','','hide','Layer7','','show')" onMouseOut="MM_showHideLayers('Layer1','','hide','Layer3','','hide','Layer4','','hide','Layer7','','hide')" style="position:absolute; left:651px; top:387px; width:181px; z-index:6; height: 83px; visibility: hidden;"> <table width="178" height="117" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"> <!--DWLayoutTable--> <tr> <td width="160" height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_objetivo.htm" class="texto_menu">Sites Swing</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_documentos.htm" class="texto_menu">Sites de Casas de Swing</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_minuta.htm" class="texto_menu">Sites Eróticos</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_campanhas.htm" class="texto_menu">Outros</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="18" valign="middle" ><font size="3"> <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/credenciado_contas.htm" class="texto_menu">Nosso Banner</a></span></font></td> </tr> <tr> <td height="1" valign="middle" ></td> </tr> <tr> <td height="1" valign="middle" bordercolor="#3E81B8" ></td> </tr> <tr> <td height="1" ></td> </tr> </table> </div> <table border="0" cellpadding="0" cellspacing="0" width="771"> <!-- fwtable fwsrc="home.png" fwbase="home.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" --> <tr> <td><img src="imagens/spacer.gif" width="275" height="1" border="0" alt=""></td> <td><img src="imagens/spacer.gif" width="5" height="1" border="0" alt=""></td> <td><img src="imagens/spacer.gif" width="468" height="1" border="0" alt=""></td> <td><img src="imagens/spacer.gif" width="23" height="1" border="0" alt=""></td> <td><img src="imagens/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr> <td colspan="4"><img name="home_r1_c1" src="imagens/home_r1_c1.gif" width="771" height="6" border="0" alt=""></td> <td><img src="imagens/spacer.gif" width="1" height="6" border="0" alt=""></td> </tr> <tr> <td rowspan="3"><a href="#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('home_r2_c1','','imagens/home_r2_c1_f2.gif',1);"><img name="home_r2_c1" src="imagens/home_r2_c1.gif" width="275" height="200" border="0" alt=""></a></td> <td colspan="3"><img name="home_r2_c2" src="imagens/home_r2_c2.gif" width="496" height="38" border="0" alt=""></td> <td><img src="imagens/spacer.gif" width="1" height="38" border="0" alt=""></td> </tr> <tr> <td rowspan="3"><img name="home_r3_c2" src="imagens/home_r3_c2.gif" width="5" height="317" border="0" alt=""></td> <td><script LANGUAGE="JavaScript" TYPE="text/javascript" SRC="http://baixadasexy.locaweb.com.br/banner_rotativo/banner.asp"></SCRIPT></td> <td rowspan="3"><img name="home_r3_c4" src="imagens/home_r3_c4.gif" width="23" height="317" border="0" alt=""></td> <td><img src="imagens/spacer.gif" width="1" height="60" border="0" alt=""></td> </tr> <tr> <td rowspan="2"><img name="home_r4_c3" src="imagens/home_r4_c3.gif" width="468" height="257" border="0" alt=""></td> <td><img src="imagens/spacer.gif" width="1" height="102" border="0" alt=""></td> </tr> <tr> <td><img name="home_r5_c1" src="imagens/home_r5_c1.gif" width="275" height="155" border="0" alt=""></td> <td><img src="imagens/spacer.gif" width="1" height="155" border="0" alt=""></td> </tr> <tr> <center> <td colspan="4" bgcolor="#000000"><div align="center"><font color="#FFFFFF" size="3">Assine Já | </font><font size="3"><span class="texto_menu"><a href="#" class="texto_menu" onMouseOver="MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide')">Anúncios</a></span> </font> <font size="3">| <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/planos_individuais.htm" class="texto_menu" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer2','','show','Layer3','','hide','Layer4','','hide','Layer5','','hide')"> Fotos</a></span> </font> <font size="3">| <span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/informativo.htm" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','show','Layer4','','hide','Layer5','','hide')">Videos</a></span> </font> <font size="3">| <font color="#FFFFFF"><span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_objetivo.htm" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','show','Layer5','','hide')">Diversão</a></span></font> </font> <font size="3">| <font color="#FFFFFF"><span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/credenciado_objetivo.htm" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','show')">Matérias</a></span></font> </font> <font size="3"> </font><font size="3">| <font color="#FFFFFF"><span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/corretora_objetivo.htm" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer5','','hide','Layer6','','show')"> Agenda de Eventos</a></span></font> </font> <font size="3"> </font><font size="3">| <font color="#FFFFFF"><span class="texto_menu"><a href="file:///C|/Inetpub/wwwroot/credenciado_objetivo.htm" onMouseOver="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide','Layer7','','show')">Hot Links</a></span></font> </font> <font size="3">| Suporte |</font><font color="#FFFFFF" size="3"> Contato</font></div></td> </center> <td><img src="imagens/spacer.gif" width="1" height="26" border="0" alt=""></td> </tr> <tr> <td colspan="4"><img name="home_r7_c1" src="imagens/home_r7_c1.gif" width="771" height="13" border="0" alt=""></td> <td><img src="imagens/spacer.gif" width="1" height="13" border="0" alt=""></td> </tr> </table> </center> <center><table width="771" height="560" border="0" bgcolor="#000000"> <tr> <td valign="top"><div align="center"> <p> </p> <center><table width="731" border="0"> <tr> <td colspan="6"><font face="Palatino Linotype"> </font></td> </tr> <tr> <td height="104"> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> </center> <p> </p> <center><table width="728" border="0"> <tr> <td colspan="6"><font face="Palatino Linotype"> </font></td> </tr> <tr> <td height="104"> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> </center> <p> </p> </div></td> </tr> </table> </center> </body> </html>Espero que alguém possa me ajudarvaleu Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 babaloricha Postado Junho 22, 2007 Denunciar Share Postado Junho 22, 2007 Opa e ai beleza!O problema de trablhar com layers e que a posicao deles e dada por cordenadas em pixes, eu te aconselho a trablhar com porcentagem, ou usar o window.screen.width e window.screen.height. ai você que decide!Da uma procurada no forum que eu já vi esse tópico algumas veses! Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
erickmm
Olá
Criei um menu com layer, só que quando troco de resolução
ele sai todo do lugar, alguém sabe me dizer oque é?
já procurei e não achei nada, vou postar o codigo
Espero que alguém possa me ajudar
valeu
Link para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.