1. Este site usa cookies. Ao continuar a usar este site está a concordar com o nosso uso de cookies. Saber Mais.

Problemas com Pop-up menu!

Discussão em 'Web Development' iniciada por Sifu, 9 de Setembro de 2008. (Respostas: 2; Visualizações: 438)

  1. Sifu

    Sifu Power Member

    Pessoal,

    Tenho várias imagens que alteram com a passagem do rato através do behavior "Image Swap", até aqui tudo bem.
    Numa dessas imagens, ao adicionar o behavior "Pop-up Menu" o behavior "image restore" deixa de funcionar. Ou seja, ao criar um pop-up menu, as imagens que deveriam alternar à passagem do rato e voltar ao normal quando este saisse, apenas alteram mas não voltam à forma original....

    Deixo aqui o codigo HTML da minha página:
    Código:
    [COLOR=#000000][FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]td[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]div align[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"left"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"index.htm" [/COLOR][COLOR=#0000bb]onMouseOver[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImage('Image1','','Imagens/But%F5es/Not%EDcias%202.png',1)" [/COLOR][COLOR=#0000bb]onMouseOut[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImgRestore()"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Imagens/But%F5es/Not%EDcias%201.png" [/COLOR][COLOR=#0000bb]name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image1" [/COLOR][COLOR=#0000bb]width[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"130" [/COLOR][COLOR=#0000bb]height[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"28" [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image1"[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]a[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Historia.htm" [/COLOR][COLOR=#0000bb]onMouseOver[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImage('Image2','','Imagens/But%F5es/Historia%202.png',1)" [/COLOR][COLOR=#0000bb]onMouseOut[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImgRestore()"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Imagens/But%F5es/Historia%201.png" [/COLOR][COLOR=#0000bb]name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image2" [/COLOR][COLOR=#0000bb]width[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"126" [/COLOR][COLOR=#0000bb]height[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"28" [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image2"[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]a[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Escolas.htm" [/COLOR][COLOR=#0000bb]onMouseOver[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImage('Image3','','Imagens/But%F5es/Escolas%202.png',1)" [/COLOR][COLOR=#0000bb]onMouseOut[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImgRestore()"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Imagens/But%F5es/Escolas%201.png" [/COLOR][COLOR=#0000bb]name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image3" [/COLOR][COLOR=#0000bb]width[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"97" [/COLOR][COLOR=#0000bb]height[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"28" [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image3"[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]a[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"javascript:;" [/COLOR][COLOR=#0000bb]onMouseOver[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImage('Image4','','Imagens/But%F5es/Eventos%202.png',1)" [/COLOR][COLOR=#0000bb]onMouseOut[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImgRestore()"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Imagens/But%F5es/Eventos%201.png" [/COLOR][COLOR=#0000bb]name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image4" [/COLOR][COLOR=#0000bb]width[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"99" [/COLOR][COLOR=#0000bb]height[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"28" [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image4"[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]a[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"javascript:;" [/COLOR][COLOR=#0000bb]onMouseOver[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImage('Image5','','Imagens/But%F5es/Multim%E9dia%202.png',1);MM_showMenu(window.mm_men u_0909151624_0,129,25,null,'Image5')" [/COLOR][COLOR=#0000bb]onMouseOut[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImgRestore();MM_startTimeout(); "[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Imagens/But%F5es/Multim%E9dia%201.png" [/COLOR][COLOR=#0000bb]name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image5" [/COLOR][COLOR=#0000bb]width[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"132" [/COLOR][COLOR=#0000bb]height[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"28" [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image5"[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]a[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Contactos.htm" [/COLOR][COLOR=#0000bb]onMouseOver[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImage('Image6','','Imagens/But%F5es/Contactos%202.png',1)" [/COLOR][COLOR=#0000bb]onMouseOut[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImgRestore()"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Imagens/But%F5es/Contactos%201.png" [/COLOR][COLOR=#0000bb]name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image6" [/COLOR][COLOR=#0000bb]width[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"126" [/COLOR][COLOR=#0000bb]height[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"28" [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image6"[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]a[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Links.htm" [/COLOR][COLOR=#0000bb]onMouseOver[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImage('Image7','','Imagens/But%F5es/Links%202.png',1)" [/COLOR][COLOR=#0000bb]onMouseOut[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"MM_swapImgRestore()"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    <[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Imagens/But%F5es/Links%201.png" [/COLOR][COLOR=#0000bb]name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image7" [/COLOR][COLOR=#0000bb]width[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"90" [/COLOR][COLOR=#0000bb]height[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"28" [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"Image7"[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]a[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    </[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>
    </[/COLOR][COLOR=#0000bb]td[/COLOR][COLOR=#007700]> [/COLOR][/FONT][/COLOR] 
    
    Alguém tem solução?
     
    Última edição pelo moderador: 9 de Setembro de 2008
  2. Yumon

    Yumon Power Member

    Podias organizar um bocado o teu código, não?

    EDIT: Tipo assim:


    PHP:
    <td>
    <
    div align="left">
    <
    a href="index.htm" onMouseOver="MM_swapImage('Image1','','Imagens/But%F5es/Not%EDcias%202.png',1)" onMouseOut="MM_swapImgRestore()">
    <
    img src="Imagens/But%F5es/Not%EDcias%201.png" name="Image1" width="130" height="28" border="0" id="Image1"></a>
    <
    a href="Historia.htm" onMouseOver="MM_swapImage('Image2','','Imagens/But%F5es/Historia%202.png',1)" onMouseOut="MM_swapImgRestore()">
    <
    img src="Imagens/But%F5es/Historia%201.png" name="Image2" width="126" height="28" border="0" id="Image2"></a>
    <
    a href="Escolas.htm" onMouseOver="MM_swapImage('Image3','','Imagens/But%F5es/Escolas%202.png',1)" onMouseOut="MM_swapImgRestore()">
    <
    img src="Imagens/But%F5es/Escolas%201.png" name="Image3" width="97" height="28" border="0" id="Image3"></a>
    <
    a href="javascript:;" onMouseOver="MM_swapImage('Image4','','Imagens/But%F5es/Eventos%202.png',1)" onMouseOut="MM_swapImgRestore()">
    <
    img src="Imagens/But%F5es/Eventos%201.png" name="Image4" width="99" height="28" border="0" id="Image4"></a>
    <
    a href="javascript:;" onMouseOver="MM_swapImage('Image5','','Imagens/But%F5es/Multim%E9dia%202.png',1);MM_showMenu(window.mm_men u_0909151624_0,129,25,null,'Image5')" onMouseOut="MM_swapImgRestore();MM_startTimeout(); ">
    <
    img src="Imagens/But%F5es/Multim%E9dia%201.png" name="Image5" width="132" height="28" border="0" id="Image5"></a>
    <
    a href="Contactos.htm" onMouseOver="MM_swapImage('Image6','','Imagens/But%F5es/Contactos%202.png',1)" onMouseOut="MM_swapImgRestore()">
    <
    img src="Imagens/But%F5es/Contactos%201.png" name="Image6" width="126" height="28" border="0" id="Image6"></a>
    <
    a href="Links.htm" onMouseOver="MM_swapImage('Image7','','Imagens/But%F5es/Links%202.png',1)" onMouseOut="MM_swapImgRestore()">
    <
    img src="Imagens/But%F5es/Links%201.png" name="Image7" width="90" height="28" border="0" id="Image7"></a>
    </
    div>
    </
    td>
     
    Última edição: 9 de Setembro de 2008
  3. Sifu

    Sifu Power Member

    Tens toda a razão..peço desculpa.
     

Partilhar esta Página