Jump to content
Fórum Script Brasil
  • 0

Ajuda Com Menu


Sperto_Rox

Question

observem esse menu

<div style="position:absolute;visibility:hidden; left:16px; top:34px" id="menu"><a href="?pagina=hauhauuah"><img src="../imagens/bolinha.gif" width="9" height="9">uahuahuhauua</a></div>
<a href="#" onMouseover="javascript:mostramenu()">Mostrar menu</a>
<script language="javascript">
function mostramenu(){
menu.style.visibility = "visible"
}
</script>

quando eu coloco o mouse ele aparece mas quero fazer q quando eu tire o mouse ele suma .... como eu faço?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

<div style="position:absolute;visibility:hidden; left:16px; top:34px" id="menu"><a href="?pagina=hauhauuah"><img src="../imagens/bolinha.gif" width="9" height="9">uahuahuhauua</a></div>

<a href="#" onMouseover="javascript:mostramenu()" onMouseOut="escondemenu()">Mostrar menu</a>

<script language="javascript">

function mostramenu(){

menu.style.visibility = "visible"

}

function escondemenu(){

menu.style.visibility = "hidden"

}

</script>

Link to comment
Share on other sites

  • 0

valeu manow

ow não deu cara .... quando eu coloco o mouse em cima aparece mas ai quando eu arrasto o mouse pra selecionar o link ele some ... ou seja ... ele ta sumindo muito rapido.. sei la como falar hehe ... testa ae q você vai ve o q eu to falando

Edited by Sperto_Rox
Link to comment
Share on other sites

  • 0
Guest Guest

Eu fiz alguma pequenas modificações nesse código, e funcionou legal aqui:

<html>
<head>
<script language="javascript">
function mostramenu(){
menu.style.visibility = "visible"
}
function escondemenu(){
menu.style.visibility = "hidden"
}

</script>

</head>
<body>

<div style="position:absolute;visibility:hidden; left:16px; top:34px" id="menu"><a href="#"  

onMouseover="javascript:mostramenu();" onMouseout="javascript:escondemenu();" >uahuahuhauua</a></div>
<a href="#" onMouseover="javascript:mostramenu();" onMouseout="javascript:escondemenu();">
Mostrar menu</a>

</body>
</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      651.8k
×
×
  • Create New...