PDA

View Full Version : How to add to a mouseover javascript menu?



katerina
28 Sep 2009, 11:46 AM
Hi,
I am trying to make a submenu but I have problems.
Could anyone help me ?

I would like using onmouseover event on News link to see the submenu links 1,2,3,4 . .
and onmouseout event to disappear 1,2,3,4 .

Will The structure of the page be changed when submenu open ?

Could someone help me ?
Please!


Thanking you in advance

webpanda
05 Oct 2009, 08:55 PM
em,, try if the 1,2,3,4 menu is a div

to put the

onmouseover="alert('hi')"

only instead of the alert just put in the function to make the 1,2,3,4 div jump out, ie

document.getElementById("div1234").style.display="block"
the opposite is:
document.getElementById("div1234").style.display="hidden"