Recent Questions Javascript Tree Indent
Q: We recently purchased your full package, and I have a couple of questions regarding deluxe-menu in particular.
1) I'd like to change what's in the noscript area to something other than an ad for you in the event my user has JavaScript disabled. I can understand the copyright remaining intact, however I don't believe I should have to display this to my users in the noscript.
2) I'm using this inside our firewall on a VPN intranet application. Am I going to have issues with the key if the site has multiple host headers and domains attached to it?
A: Thanks for your interest in our products.
1) If you delete noscript tag from your pages you'll see "IncorrectCopyright" message in IE.
You can generate search engine friendly code. When JavaScript isdisabled you will see the links.
JavaScript Tree Menu is a search engine friendly menu since v1.12.
To create a search engine friendly menu you should add additional html code within your html page:
<div id="dmlinks">
<a href="http://deluxe-menu.com">menu_item_text1</a>
<a href="http://deluxe-tree.com">menu_item_text2</a>
...etc.
</div>
To generate such a code use Deluxe Tuner application.
You can find this GUI in the trial package.
Run Tuner, load your menu and click Tools/Generate SE-friendly Code (F3).
2) JavaScript Tree Menus support multiple keys in one data file,so you can apply the following syntax to use the same html codeunder multiple domains:
var key ="THE_FIRST_KEY"; //sandvine.com
var key1="THE_SECOND_KEY"; //salestools
...
Q: The AJAX sample for tree menu script on website does not have any styling applied at the moment.
I am assuming that it would support full styling with AJAX as well.
Is this correct?
A: You can use any style and templates for the AJAX sample.
Create a menu and set style you need using Individual Item Styles.
To enable AJAX Tree Menu use the following menu parameters:
var tajax=1;
Then set your menu in such way:
var tmenuItems = [
["Javascript/DHTML Tree: XP Style","", "", "", "", "XP Title Tip", "", "0", "", "data-samples/data-ajax5.js", ],
["+Samples Gallery","", "", "", "", "XP Title Tip", "", "0", "0", "", ],
["|Samples Block 1","", "", "", "", "", "", "", "", "data-samples/data-ajax.js", ],
["|Samples Block 2","", "", "", "", "", "", "", "", "data-samples/data-ajax.js", ],
["|Samples Block 3","", "", "", "", "", "", "", "", "data-samples/data-ajax.js", ],
];
Each .js file must contain menuItems variable for the submenu in the following format:
var tmenuItems = [
[text, link, icon1, icon2, icon2, tip, target, itemStyle, submenuStyle, jsFileName],
];
Where jsFileName - .js filename on the server that contains tmenuItems variable for the submenu.
For example:
var tmenuItems = [
["Home","testlink.htm", "", "", "", "Home Page Tip", "", "", "", "", ],
["Product Info","", "", "", "", "Product Info Tip", "", "", "", "data-samples/data-ajax2.js", ],
["Samples","", "", "", "", "Samples Tip", "", "", "", "data-samples/data-ajax4.js", ],
["Purchase","testlink.htm", "", "", "", "Purchase Tip", "", "", "", "", ],
["Support","", "", "", "", "Support Tip", "", "", "", "", ],
["|Write Us","mailto:[email protected]", "", "", "", "", "", "", "", "", ],
];
Q: Is there a way to fix it so that in the dhtml tree menu when you have link set it doesn't expand the menu and then load the page. It should only load the expand the menu if I click the + image if I have a link...
Example...
["|ACRYLIC BRUSHES", "fright_itemlist.asp?level1=BRUSHES ~ KNIVES&level2=ACRYLIC BRUSHES","","","","", "_self","","","tmlevel3/m251.js",]
A: But Javascript/DHTML Tree works in this way now.
If your item has link and subitems at the same time you should clickon the item to open item's link and click on the "+" sign to expandthe item.
Make sure that you've set the following parameter:
var texpandItemClick=0;
Q: We need Asian fonts to be displayed on the menu. Is there any way that we can really make it happen?
The constraint is we have to display the drop down in Cross Frame and Cross Domain environment.
Your inputs will be really appreciated.
A: You can use any font in your menu.
You should install the font on your computer.
You're able to use any characters for JavaScript Tree Menu in the same way asyou use them for standard html page.
The only issue is that submenus can be shown in incorrect positionwhen you're using dir=rtl for your page.
var dmRTL = 0;
Set this parameter to 1 if you're using right-to-left direction of html page <HTML dir=rtl>.Use also var smViewType = 2;for right-to-left languages.