Recent Questions
Q: Another glitch is that the first item on the sidemenu stays dark blue -
even when the mouse is off of it.
A: In your code now you have:
var pressedItem=0;
Please, set this parameter in the data.js file:
var pressedItem=-2;
Q: I need to set individual itemtargets for a number of menu script items......
example:-
var itemTarget="Main";
menuitem_1 targets the Main frame..
menuitem_2 ..
SUBmenuitem_2_(1) targets the Top frame..
SUBmenuitem_2_(2) targets the Main frame..
menuitem_3 ..
SUBmenuitem_3_(1) targets the Main frame..
SUBmenuitem_3_(2) targets the Bottom frame..
menuitem_4 targets the Main frame..
Is this possible?
A: You can set target parameter for all items:
var itemTarget="_blank";
or
var itemTarget="main";
Where main - is the name of the main frame where you want to open the link.
or for each item individually:
["Home","testlink.html", "", "", "", "_blank", "", "", "", "", "", ],
...
["Home","testlink.html", "", "", "", "main", "", "", "", "", "", ],
Q: I'm a having an issue with my items in navigation bar menu poping-up behind a flash object on a page.
A: You should add "opaque" parameter for <object> and <embed> tags.
See, how you should install flash on your pages.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
height="150" width="732" name="if-header">
<param name="movie" value="images/flash/if-header.swf">
<param name="quality" value="best">
<param name="play" value="true">
<param name="wmode" value="opaque">
<embed height="150" name="if-header" pluginspage="http://www.macromedia.com/go/getflashplayer"
src="images/flash/if-header.swf" type="application/x-shockwave-flash" width="732"
quality="best" wmode="opaque" play="true">
</object>
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.