Recent Questions Javascript Tree Menu Code
Q: Thank you. I got the menu working on my web page.
Now, I have to pass dynamic value from the link when the user click the floating javascript menu.
I was using a table type of menu and passing value like this
<td onclick="document.iframename.location.href='abc.jsp?value1=<%value1%>&value2=<%value2%>Click here</td>
What should I do to the deluxe-menu to get the same action?
I need to pass value to next page. The value is dynamic, so I have to use <%value1%> notation for JSP file.
A: Actually you can use your own Javascript code instead standard links. For example:
var menuItems = [
["text", "javascript:your_code_here"]
];
or
var menuitems = [
["<div onClick='your_code_here'>item text</div>", ""]
];
Q: The mentioned effect occurs even when the entire page is completely loaded!
As we explained before, it occurs only when we view the page with explorer 6.
(It is working fine under explorer 7 and under Firefox, so you should check it under explorer 6)
Please see the following link with our test page which demonstrates the problem.
As you will see, the buttons of the javascript menu scroll and the text will disappear (become white) while you move the mouse cursor over the menu buttons. It has nothing to do with page loading.
We are using a "Vista style" javascript menu scroll with custom design pictures.
A: This is IE6 bug.
You can find more info about this bug and solution here:
http://dean.edwards.name/my/flicker.html
Q: I can not figure out how you put the arrow that shows there's more information in the php drop down menu?
I tried and tried to figure it out where you add this .gif file?
A: You should set the following parameters in your data.js file:
var arrowImageMain=["deluxe-menu.files/arrowmain.gif","deluxe-menu.files/arrowmaino.gif"];
//Normal and mouseover arrow images for top-level items.
var arrowImageSub=["deluxe-menu.files/arrowsub.gif","deluxe-menu.files/arrowsubo.gif"];
// Normal and mouseover arrow images for submenu items.
You can set these parameters in Deluxe Tuner also:
Open 'Icons' section in the main window and set var arrowImageMain and var arrowImageSubparameters.
Q: My menu is working very well in IE 7.0, and almost very well in FF 2.0.
In your faq, you mention the following:
Fix for flash in Firefox!
If you don't want the flash to hide under submenus in Firefox you should do the following things:
However, I do want the flash to hide under submenus, like it does in IE when I set var dmObjectsCheck = 1;
My menu is beneath my flash.
A: If for some reasons a submenu can't drop down over an object the latter will be hidden for a time when the submenu is shown.
If you don't want to have such effect you should follow these steps.
http://deluxe-menu.com/objects-overlapping-sample.html