Recent Questions
Q: I am designing a tree menu. I want the text blue on a transparent background. What parameter do I change to set the transparent background in expanding dhtml menu?
A: You should set the following parameters:
var tmenuBackColor="transparent";
var titemBackColor=["transparent","#D5E8FF"];
Q: I have a problem. How can we get the value of a parameter passed by the menu, when a menu item is clicked? For example I want to get the URL or file name to be open by the menu item when it is clicked.
I am talking about TREE menu.
A: If you want to open url or a file when you click on items of the tree menu you can write, for example:
var tmenuItems = [
["+DHTML Menus","http://dhtml-menu.com", "images/xpicon1.gif", , , "DHTML Menus", , "0", , , , ],
["|Save as...", "javascript:OpenFile('file_name')"]
];
Q: How can you set an item in a dhtml dropdown to just have a text and not a link
A: Don't add link in the item's link field:
["Home","", "default.files/icon1_s.gif", "default.files/icon1_so.gif", "", "Home Page Tip", "_blank", "", "", "", ],];
Q: It seems like that I'm unable to pull data from Word, Excel, JPG's etc into the floating window?
A: You can use the following content for the popup window:
Iframe(url);
Object_id;
text(html content).
So, to add image/text inside the popup window you should set:
winContent - Html Content
and add the following tag.
<img src="images/img.jpg" alt="screen">
<p align="right"> Text text .... </p>
To add content from the excel file you can export it to html file andthen set the following parameter:
winContent - Iframe(url)
data.html
and then enter the name of the html file with your excel data