sudhakarReddy Posted May 26, 2006 Share Posted May 26, 2006 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 also showing for the first time only. After that it is working fine. why it is showing.Here is my Code// JavaScript Documentfunction showmenu(elmnt){document.getElementById(elmnt).style.visibility="visible";}function hidemenu(elmnt){document.getElementById(elmnt).style.visibility="hidden"}Plz help me.Sudha. Link to comment Share on other sites More sharing options...
watagal Posted May 26, 2006 Share Posted May 26, 2006 // JavaScript Documentfunction showmenu(elmnt){ document.getElementById(elmnt).style.visibility="visible";}function hidemenu(elmnt){ document.getElementById(elmnt).style.visibility="hidden"}<{POST_SNAPBACK}> What do you initially set your element "elmnt" to in your HTML code? Try:<div id="elmnt" style="visibility:hidden"> WG Link to comment Share on other sites More sharing options...
sudhakarReddy Posted May 27, 2006 Author Share Posted May 27, 2006 What do you initially set your element "elmnt" to in your HTML code? Try:<div id="elmnt" style="visibility:hidden"> WG <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now