Recent Questions Javascript Tree Menu Json
Q: I have used Deluxe tuner menu on a web page and facing two small problems
a) The separator I have used do not show up. This is supposed to be a black horizontal line below every menu item. The image name is sep.jpg
b) The submenu appears on the right and I am unable to figure out a way to get the submenu to appear on the left. My navigation is placed on the right panel so if the sub menu appears on right of drop down menu bar, it practically goes off the page.
Can you please help with this and let me know why this is happening ?
A: 1) You should set separators between main items:
["Home","testlink.html", "data.files/bul.jpg", "data.files/bul.jpg", "", "", "", "", "", ],
["-"],
["About Us","", "data.files/bul.jpg", "data.files/bul.jpg", "", "", "", "", "", ],
And set:
var separatorVImage="data.files/sep.jpg";
var separatorVWidth="100%";
var separatorVHeight="1px";
var separatorPadding="0px";
2) You should set the following parameter:
var smViewType=2;
Q: How can I change item width in the Vista templates in the drop down menu generator?
A: The width of vista images is 92px. If the width of your menu itemis wider than 92px you should correct the width of the images in anygraph editor, for example in Photoshop.
Q: For how long our purchase does entitle us to getting the upgrades for the dhtml menu software?
A: All minor upgrades you'll get for free (for example, 2.4->2.7).
All major upgrades you'll get for free during 1 year (for example, 2.4->3.0).
For example, if there's some major upgrades (1.7 -> 2.0 -> 4.0)
you'll get them for free during one year.
But if there'll be no major upgrades during some period (2.72 -> 2.81 -> 2.92). And after 3 year, for example, there will be major upgrade to 3.0. So you can upgrade for free.
We can offer you a big discount for the major upgrade after one year.
Q: The menu has a problem with newlines. The menu builds correctly (layout ok) but when pressed on the button nothing happens
At some point, in the DHTML menu, we have the following in the javascript:
var menuitems = [
["|Print HTML","javascript:alert('HTML print: Only the 7 most recent orders on the screen \n will be printed because of space limitations on paper.');printResult('4'); ","","", ,"_parent",,] ]
As you can see we have a newline (\n) between the words "screen" and "will". But when we click on the button nothing happens. If we remove the newline and we click on the button then we first get the alert box. After pressing the OK button the function printResult is called.
Is there any way for us to still use the newline character in the menuItems variable?
This can be easily reproducible. That's why I haven't made an example.
A: Try to write in the following way \\n:
["|Print HTML","javascript:alert('HTML print: Only the 7 most recent orders on the screen \\n will be printed because of space limitations on paper.');printResult('4'); ","","", ,"_parent",,]