Recent Questions
Q: Do you have documentation for the paramaters for the apycom DHTML menu.
I'm try to figure out how to get a javascript menu link to open in the same window instead of a new window..
["|Legal","http://www.yahoo.com/","","","",,,],
A: You can find more info about menu parameters here:
http://www.dhtml-menu.com/menu/dhtml-sliding-menu-items-info.html
You should write:
["|Legal","http://www.yahoo.com/","","","","_self",,],
Q: Is there any way to call a javascript function on mouseover from a menu item?
A: You can use your own javascript functions in the menu items.
You should paste "javascript:some_function()" into item's link field, for example:
var menuItems = [
["text", "javascript:your_function(...)", ...]
];
var menuItems = [
["item text", "javascript:alert('Hello World')", , , , ,]
];
Unfortunately, you can't assign onmouseover/onClick event to each item. However, you can achieve this by using standard html objects within items, for example:
var menuitems = [
["<div onMouseover='your_code_here'>item text</div>", "index.html"]
];
Q: When I load a page the first tab of the creating tab menu is always highlighted, not the contact tab.
A: I suppose that you've set the following parameter:
var bselectedItem=1;
So, the first tab is always highlighted.
This Tab menu can save pressed item automatically within1 page only.
If you open another page, the menu can't remember presseditem.
You should do that manually using Javascript and menu parameters
( var bselectedItem, var bselectedSmItem) or using any server-sidescript (php, asp, etc.)
You should delete this parameter from your data file and write thefollowing code
on each page before you call your data file, for example:
<script language="JavaScript1.2">
var bselectedItem = 3;
</script>
Q: How to set the icon vertically top when the menu in dhtml text is wrapped?
A: Unfortunately it is not possible to align icon vertically now.
But you can do it using html code within menu in dhtml items, for example:
var menuItems = [
["<img src='deluxe-menu.files/orangeDot.jpg' style='border: 0 none;'> Home","testlink.html", "", "", "", "", "", "", "", "", "", ],
["<img src='deluxe-menu.files/orangeDot.jpg' style='border: 0 none;'> Product Info hgdgfjh aaaaaaaaa aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaa aaaa","", "", "", "", "", "", "", "", "", "", ],