Recent Questions
Q: Are there the possibility to have the dhtml menu code into an external file so that nothing of the dhtml menu code will appear on my html code?
A: Menu has data.js (by default) data file with menu parameters, itemsand styles and 9 engine files.
You should only call two .js files on your html page.
See more info here:
http://deluxe-menu.com/description-of-files-info.html
http://deluxe-menu.com/installation-info.html
Q: I would like to add the javascript API to a link contained in my website that will have the corresponding item in the deluxe-tree menu act as if it was "clicked".
Presumably I need to add the script (for example) <A HREF="http://deluxe-menu.com/features-info.html" TARGET="_self" "..javascriptHere ..">. Can you give me an example please of what code goes into there.
I presume I use dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion) but where do I get the ????Ind data from and make the javascript call in the above link.
A copy of a working example together with where to get the data , perhaps on your own web pages, would help.
A: Deluxe Tree doesn't save a presseditem as it saves a tree state. It works within 1 page only and if youreload the page you should set a pressed item using Javascript API:
function dtreet_ext_setPressedItem (menuInd, itemID)
<script type="text/javascript">
var i = <?php echo $selitem; ?>;
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}
</script>
You should define selitem using server side script.
Q: I use your deluxe menu for my personal website and want to use it for a client site that we are putting together at work. However, there is one challenge. Some of the sites we build for our clients are internal only and do not have a proper domain name. In the case of my current client, the site answer to a servername call from within the network. Eg. http://WebServer1/ . They will NOT have a proper domain name (eg www.mysite.com). So, my question is, how can we purchase a license and have this work? Does your licensing need to be tied to a domain name to work? Also, the client has not yet confirmed the server name. How will this work?
A: You need to register the hostname of the website (as appears in the URL, for examplehttp://yourintranet/ , http://WebServer1/).
In you case you should register "WebServer1".
< Does your licensing need to be tied to a domain name to work?
Single and Multiple Website licenses are bound to a domain name.
Developer License - this version of the script doesn't check keys and it isn't bound to a domain name,so it can be used with an application that doesn't have a fixed domain name.
For your new client you can buy Single Website License. You can alsoupgrade to Multiple Website license for the price difference and generate your own keys for theclients or you can upgrade to Developer License.
Q: Is there anyway to embed particular fonts that I want to use with the javascript menu component?
A: See, for example you want to use HelveticaNeue Condensed font.
If there will be no HelveticaNeue Condensed font on the user machinethe font won't be shown correctly.
You can find another font similar to your font and write it through a comma.
You should choose the font among the following fonts:
Arial
Tahoma
Times New Roman
Trebuchet MS
Verdana
These fonts are installed on the most of windows computers.
Or you can create images with text and use it for the top items.