Recent Questions Javascript Tree Menu Navigation Code
Q: I made a html CD presentation based on cascading drop down menu but it works good only onIE and Google Chrome web browsers.
It doesn't work good on Mozilla Firefox browser. It shows menu properly but there is a problem with normal navigation.
The problem is with paths. I put the main js file in "menu" folder and I also have few folders with many html files in them.
For path I use the following "file:/(direct path to specific html file)". It works fine with IE and Google, but Mozilla/Firefox doesn't show the menu.
I tried also to use prefix "file:/" but it also doesn't show the cascading drop down menu on Mozilla/Firefox.
Is there any way to solve this problem?
Thank you for your answer.
A: It is not correct to add "file:/" in the link field.
You should write:
menu/image.gif
or
../menu/image.gif
You can try also to write links in the following way:
file://html/other/1.html
But I don't think that this will help you.
This is a feature of Firefox browser, Opera and Safari. These browsers cannot determine the root folder ofthe website (D:\ in the examples below) on a local machine (as IE and Google Chrome).
IE: D:\html\other\page.html (works)
Opera: file://localhost/html/other/page.html (link doesn't work)
Google Chrome: file:///D:/html/other/page.html (works)
Safari: file:///html/other/page.html (link doesn't work)
Firefox: file:///html/other/page.html (link doesn't work)
You use relative paths (and your folders have several embedded folders), so your links won'twork correctly in Firefox, Opera and Safari. The reason is not in the menu. Standard linkswon't work too.
So I think that the unique solution in your case is to move ALL link files (1.html,2.html, a.html ...) into the same folder with your index.html file.
Q: Is there a way to create a vertical menu in which the sub menus "fly out" to the left of the main menu?
A: Yes, it is possible.
To create vertical menu you should set
var isHorizontal=0;
Why of showing submenu you can set so:
var smViewType=2;
Q: I am setting up a 3 tab script and each tab opens a new page but the state of the javascript tab menu selected reverts back to the default tab.а Howdo I keep the tab selected when advancing to the next tab (new page)?
A: You should change the selected tab depending on the page you are now.
This Tabs 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) or using any server-side script (php, asp, etc.)
Deluxe Tabs doesn't support API functions which can return theselected tab.
So, you can set "bselectedItem" parameter based on your link beforeyou call data.js file.
For example, move "bselectedItem" parameter from data.js file to yourcode.
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem=<?php echo $seltabs; ?>;
</script>
<SCRIPT src="data.js" type=text/javascript></SCRIPT>
</TD>
You should define seltabs using server side script.
Q: I'm interested in using DHTMLMenu in web applications I develop and have some questions about licensing.
My company develops web applications that act as front ends for clients' legacy mainframe programs. DHTML Menu would be of great benefit in adding navigation functionality to these applications. Each application is custom-developed for each client, so we don't have a pre-packaged product in which the menu would be used. Would the Developer License meet our needs for this sort of development?
Also, a small minority of our clients develop and distribute applications themselves based on the applications that we develop for them. Does the Developer License support transferable redistribution? If not, how much would a license that permitted this cost?
Thank you for your time and I look forward to hearing from you.
A: Yes, Developer License will suit you.
You can use it within your applications and distribute them.