Recent Questions Menu Tree Javascript
Q: I'm trying to get the scrolling menu to display upwards, but the items are displaying downwards.
A: You should set the following parameters in your data.js file:
var subMenuAlign="left";
var subMenuVAlign="bottom";
Q: If you take a look at the upper menu, I have "|" separating all of the various menu items. How can I do this with JavaScript Tree Menu?
I don't want to resort to using messages and would like to use the "|" character if at all possible.
A: You can paste a separator.
Please, see the following parameters:
//------- Separators -------
//--- Separators
var separatorImage="";
var separatorWidth="5";
var separatorHeight="100%";
var separatorAlignment="right";
var separatorVImage="images/public/separator.gif";
var separatorVWidth="3";
var separatorVHeight="100%";
var separatorPadding="";
You should set a separator in the menuItems, for example:
var menuItems = [
["Home","index.cfm", , , , , , , , ],
["-"],
["About Us","about.cfm", , , , , , , , ],
];
Q: We have a question and a problem.
This is a link to our website with your menue:
http://domain.bon.at/philosophie.html
Down the navigation point "FAQґs" is a submenue like darm, diverses, einlagen etc....)
If you click on a link in this submenue a new window open _BLANK!
Is it possible to open the new site in a popup in dhtml drop down menu, like 800 x 600 or something?
A: You should paste the following code inside 'Link' field of menuItems (you can do it inDeluxe Tuner):
javascript:window.open('http://www.google.com','_blank','height=600,width=800, status=yes,toolbar=no,menubar=no,location=no');Q: The cascading javascript menu does not spans frames or windows like Applets. Is that correct?
I was not able to make the sample to do it.
A: The DHTML Menu and Java Menu are built on different technologies.Java menus can create submenus that cover frames as a standard Windowssubmenus. DHTML Menu can't do that, because it's controls is htmlobjects, they can't overlap Windows controls. So, cascading javascript menu hascross-frame ability that allows it to show submenus in differentframes. But it can support this mode for the same domain only -- ifyou loaded a page to a subframe from another domain, the submenuscan't be shown in it. It happens because all browsers don't allow todo that for security reasons. Just imagine if you'll able to create aframeset from 2 frames, 1st frame will be with a zero height-width,and you'll load your page into it. Then user will go to another domainand your "invisible" frame will change a content of other pages!
See more info about cross-frame mode here:
http://deluxe-menu.com/cross-frame-mode-sample.html