Jump to content


Problem with Submenus


2 replies to this topic

#1 LAMPSudha

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 25 May 2006 - 10:22 AM

Hi Guys,

I ahd a submenu. evrything is working fine. But there is small problem.
Actually the submenus are shown OnMouseOver event only. They r showing. But, the problem is,
when i open my html page in my browser, automatically the submenus are showing first. After that it is working fine.

why it is showing.

Here is my Code

// JavaScript Document
function showmenu(elmnt)
{

document.getElementById(elmnt).style.visibility="visible";

}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}


Plz help me.
Sudha.

#2 php3ch0

    Advanced Member

  • Members
  • PipPipPip
  • 162 posts

Posted 25 May 2006 - 12:21 PM

Have you got some code?

#3 starshant

    Newbie

  • Members
  • Pip
  • 0 posts

Posted 23 December 2009 - 10:54 AM

you can call function hidemenu(elmnt) while loading page such as:

window.onload = hidemenu(elmnt);





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users