954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need popup menu code

Hi All
I am working on one project. The requirement for business is like one popup should appear while one menu is moused over. Actually that menu item is "ADDRESS" , and client wants that once that pointer will come over "ADDRESS" ,one small popup will appear with address information and once the mouse pointer comes out of the "ADDRESS" , that popup should hide. I need javascript code for this.

Thanks in advance
Prasanna

pksinha84
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

That really is not that difficult. You can change the display of a element using:

document.getElementById('divId').style.display='none';
document.getElementById('divId2').style.display='inline';

And the 2nd line javascript should be triggered onmouseover, and the 1st line onmouseout. Make them into 2 little functions and voila you got yourself a popup.

~G

Graphix
Posting Pro in Training
432 posts since Aug 2009
Reputation Points: 82
Solved Threads: 74
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You