Recent Questions Excel Tree View Template Download
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: I have used your Deluxe-menu on my websit. With the browser Opera I have problems with the dhtml scrolling menu item-color. If I select the menu at the first time, the item color is black. After select a menu item the menu item color is #f0e4cc, this is correct. After re-select the menu the item color is #f0e4cc also. After browser re-start the menu item color is black :-(
A: See it is not correctly to write colors in the following way (without # symbol):
var fontColor=["f0e4cc","f0e4cc"];
You should write:
var fontColor=["#f0e4cc","#f0e4cc"];
Your menu will work correctly in all browsers in that case.
Q: I'm having a problem displaying a little white icon arrow on my dhtml foldout menu. I us Adobe Dreamweaver to build my site. When previewing, I found that adding . /.. to the .js file works good and it displays the arrows. But when I Put the menu on the internet it goes back to displaying a blank box like it can t find it again. My menu is in my site's root directory, and I would like to control all my site's pages with it. I am going to have a basic template for the whole site with the dhtml foldout menu on it and I am to building all the pages from that.
If I don't change the link to ../../ the only pages that will work is the one that is in the same directory as my menu files.
A: Try to use absolute paths to your images on the website. Your menu will work correctly inall cases in that case.
var pathPrefix_img="http://www.domain.org/Fundraising/Scrip/";
var arrowImageMain=["data.files/arrv_white_1.gif",""];
var arrowImageSub=["data.files/arr_white_1.gif",""];
or
var pathPrefix_img="";
var arrowImageMain=["http://www.domain.org/Fundraising/Scrip/data.files/arrv_white_1.gif",""];
var arrowImageSub=["http://www.domain.org/Fundraising/Scrip/data.files/arr_white_1.gif",""];
Q: I'm trying created an independent menu from my html pages.
I have several pages stored in directories and subdirectories,
I would like to call theses pages from a single dhtml menu script.
A: You can use additional parameters to make menu paths absolute:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";
These parameters allow to make images and links paths absolute.
For example:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";
var menuItems = [
["text", "index.html", "icon1.gif", "icon2.gif"],
];
So, link path will be look so:
http://domain.com/pages/index.html
Images paths will be look so:
http://domain.com/images/icon1.gif
http://domain.com/images/icon2.gif
Please, try to use these parameters.