943,189 Members | Top Members by Rank

Ad:
Aug 19th, 2010
0

Need popup menu code

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pksinha84 is offline Offline
1 posts
since Aug 2010
Aug 19th, 2010
0
Re: Need popup menu code
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
Reputation Points: 82
Solved Threads: 74
Posting Pro in Training
Graphix is offline Offline
400 posts
since Aug 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: How to hide the login window ?
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: calling two function at the same time





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC