Recent Questions
Q: How do I go about using the menu javascripts feature and javascript popup on the same HTML page? I'm getting a Java Error.
A: 1) Notice that you should call dmWorkPath parameter and dmenu.js file only once on yourhtml page.
2) When you have several menus on the same page they have different menuInd (0,1,2,3...)
For example you have:
<script type="text/javascript" src="data.js"></script> //standard menu menuInd=0
...
<script type="text/javascript" src="popup-data.js"></script> //popup menu menuInd=1
You should call your popup in the following way:
<img src="mypic.gif" onClick="return dm_popup(1, 1000, event);">
or
<script type="text/javascript" src="popup-data.js"> </script> //popup menu menuInd=0
...
<script type="text/javascript" src="data.js"></script> //standard menu menuInd=1
You should call your popup in the following way:
<img src="mypic.gif" onClick="return dm_popup(0, 1000, event);">
Q: I'm trying to display the submenus to the left of the menu. I searched your questions and found one that said to use the following:
var smViewType=2;
I added this but it didn't do anything.
A: Try to use this parameter:
var subMenuAlign = "left";
Q: Is it possible to create the dhtml scroll with a tilde (over the letter N).it would look like N. I want the menu item to be labeledСSe habla Epanol.
A: You can use any html code within menuItems, for example:
var menuItems = [
["Se habla Epañol","testlink.html", "", "", "", "", "", "", "", ],
Q: Can you tell me the difference between a target and a link.
Also can you explain what self, blank, top, parent, search and custom mean in the javascript menu table please.
A: Link is the url you want to open when you click on the javascript menu table item.
Target controls where you'll open your link:
"_self" - open link in the same window
"_blank" - open link in the new window
"_parent" - will load the linked document where the inner frameset file had been
"_top" - loads the linked document in the topmost frame
custom - you should write here the name of the frame where you want to
open the linked document, for example:
"framename"
"_search" - this target causes the link to load in the browser's Search pane. (Internet Explorer 5.0 and later.)
You can find more info here:
http://www.htmlcodetutorial.com/linking/_A_TARGET.html