Jump to content

[SOLVED] javascript dropdown menu


chriscloyd

Recommended Posts

I coded a dropdown menu when i hover over a image now the problem im having is for the drop down menu to stay visible while i try to click on one of the links  :facewall:

 

javascript code

<script>
function hoverover(id)
{	

// close old layer
if(menu) ddmenuitem.style.visibility = 'hidden';

// get new layer and show it
menu = document.getElementById(id);
menu.style.visibility = 'visible';

}
// close showed layer
function hoveroff()
{
if(menu) menu.style.visibility = 'hidden';
}
</script>

 

Link to comment
https://forums.phpfreaks.com/topic/170222-solved-javascript-dropdown-menu/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.