I made a html CD presentation based on cascading drop down menu but it works good only on IE and Google Chrome web browsers.
Return to Recent Questions
Q:
I made a html CD presentation based on cascading drop down menu but it works good only on
IE 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 of
the 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't
work correctly in Firefox, Opera and Safari. The reason is not in the menu. Standard links
won'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.
Return to Recent Questions
Related:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
- Sep 26, 2006 - Firefox doesn't support the dropshadow and effects in the javascript pull down menu.
- Sep 29, 2006 - Is it possible to use an external file in the java drop down menu?
- Oct 01, 2006 - All of the items in html pull down menu are different sizes.
- Oct 01, 2006 - When I click on link of my vertical drop down menu no file is loaded!?
- Oct 16, 2006 - I need the sub menu of the drop menu to be vertical instead of horizontal
|