Recent Questions Simple Tree Menu Html
Q: Can you please give me an example of how I would return the full path to the selected item of the web site menu?
A: See the following example:
function getFullPath(mInd){
var result='';
// get pressed item
var params = dm_ext_getMenuParams(mInd);
if (!(params[2]>=0)) return '';
function getPathForItem(mInd,smInd,itInd){
// get for this item
var params = dm_ext_getItemParams(mInd,smInd,itInd);
var result = params[2]+ '('+ params[3]+')';
// find root item id
if (smInd <= 0) return result;
params = dm_ext_getSubmenuParams(mInd,smInd);
for ( var smInd_=0;smInd_ for ( var itInd_=0;itInd_ itParam = dm_ext_getItemParams(mInd,smInd_,itInd_);
if (itParam[0]=arams[2])// id
return result + '->' + getPathForItem(mInd,smInd_,itInd_);
}
}
return result;
};
return getPathForItem(mInd,params[1],params[2]);
}
Q: Hi, how to change font/size of the main java script pull down menu?
I see the option only for the sub menus.
A: I suppose that you're using Vista style template.
You should change font for the top items in Individual styles.Try that.
Q: I think I am almost there.
I would like to know a couple of things.
Why the menu does not float?
Why I cannot centre the menu?
A: When you use floatable menu you can't use relative menu position.
So, if you use
var absolutePos = 0;
and to center the menu you use <p> or <div> with the center alignment your menu won't float.
To center your floatable menu you should set absolute coordinates.
var absolutePos = 1;
Q: I ran across your site on a search engine and downloaded the trial copy. I am playing around with it and have successfully generated a menu bar which I wanted to try and test out. I have followed the directions for installing it on my trial page of my website and can not get it to work. I am not sure what I am doing wrong . I would truly love to buy this, but even with following the installation instructions, I can not get free javascript drop down menu to work. I use Dreamweaver to build my site.
A: JavaScript Tree Menu wasn't developed as Dreamweaver/Frontpage extension and wedon't have plug-ins for it. To install the menu into your html page:
1. create and save .js file with your menu parameters in Deluxe Tuner(you can use "File/Save as/HTML" function).
You can enter any name you like, for example enter "menu". So you'llhave menu.html, menu.js files and "menu.files" folder with all menu files.
2. open your .html page in Dreamweaver
3. Copy generated menu.js file and "menu.files/" folder in the same folderwith your index.html page.
4. Open generated menu.html in any text editor and copy several rows of code (<script> tags), For info see:
http://deluxe-menu.com/installation-info.html
<head>
<!-- JavaScript Tree Menu -->
<noscript><a href="http://deluxe-menu.com">free javascript drop down menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath="menu.files/";</script>
<script type="text/javascript" src="menu.files/dmenu.js"></script>
</head>
<body>
...
<script type="text/javascript" src="menu.js"></script>
...
</body>
That's all.