I cannot create two javascript menu popups with different content..
Return to Recent Questions
Q:
I try to use the javascript menu popups to show an image; then when the
mouse is over the image I dynamically generate a panel of http links.
It works perfectly, but the problem is that I would like to do the
same with several images (for instance 2) and different links : I'm not able to
do that, whether I change the value of menuItems var or not, I
display the same link values on both images (it seems menuItems is a global var and
can be set only once).
Have you heard about this problem and could you give me a solution
(this is a bit urgent, I have sold this solution to my customers) ?
A:
See how you should call dm_popup() functions:
<img src="../../../../fileadmin/img/flag_de.gif" width="50"
onMouseOver="return dm_popup(0, 2000, event);" style="cursor: pointer;">
// 0 - is ID of the first menu
....
<img src="../../../../fileadmin/img/flag_fr.gif" width="50"
onMouseOver="return dm_popup(1, 2000, event);" style="cursor: pointer;">
// 1 - is ID of the second menu
// 2 - is ID of the third menu
... and so on.
Return to Recent Questions
Related:
- Sep 02, 2006 - Can I show / hide the javascript floating menu .
- Sep 06, 2006 - Can't see my javascript vertical tree menu in FireFox.
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 15, 2006 - Are vertical menus also supported? I don't see any in the javascript menu examples.
- Sep 17, 2006 - How can your javascript onmouseover menu be set to open by click?
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
- Sep 23, 2006 - Is it possible that your menu call some javascript onmouseover event?
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Sep 26, 2006 - Firefox doesn't support the dropshadow and effects in the javascript pull down menu.
- Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Sep 29, 2006 - I tried to use javascript function with the "Title item" of my javascript tree view.
|