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.
Q: Looking at the tab menu code below, am I right in guessing what the first 6 parameters are, and can you tell me what the last 3 are forplease?
var bmenuItems = [
["-","", "", "", "", "", "", "", "", ],
["Title","...link.asp", "iconNormal", "iconMouseOver","iconSelected", "tootip", "?", "?", "?", ],
["-","", "", "", "", "", "", "", "", ],
];
A: var bmenuItems = [
[item_text, object_to_show, normal_icon, mouseover_icon, selected_icon, tooltip, item_style],
[item_text, object_to_show, normal_icon, mouseover_icon, selected_icon, tooltip, item_style],
...
];
so it's a item_style, the last two are reserved and not used.
http://deluxe-tabs.com/product-info/?individual-item-styles
Q: The browser I am using is Internet Explorer 7.0 at Windows Vista (with "Security" set at "Medium"). I get the message "To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer" and then I have to click this message/bar in order to "Allow blocked content". After I do that the javascript menu script appears as it should, but of course I don't want visitors to go through that. FYI, I do not have the same problem with the dynamic menus on your website or in other websites, which appear normally right from the start.
A: You should adjust your browser settings.
Tools/Internet Options/Advanced Options/
and set
"Allow active content from files to run on My Computer".
There is no way to enable these preferences automatically, in othercase there are no reasons to create security preferences.
Q: Can I make dhtml menu sample so a user can open a link on a Deluxe-Menu in a new browser tab instead of a new window using IE?
I really like your menu system.
A: You can try to write the following code for your items:
["<a href='index.html' target='_blank' class='home'>Home</a>","", "", "", "", "", "", "", "", ],
And create styles
.home{
color: #FFFFFF;}
.home:hover{
color: #FFBEBE;}