Recent Questions Php Tree Menu
Q: I have built a new drop down css menu.
I have a named frame body but when I use the menu creater it works and changes the frame but when loaded to the site it says error on page.
what have I done wrong ?
Try the home which calls home_body.htm and about us which calls About Us.html in the body frame top the right of the menu.
A: You cannot use local paths on the Internet sites. They won't work.
["Home","", "", "", "", "", "", "", "", ],
["|Back to main page","D:/Web Design/CCA/home_body.htm", "", "", "", "", "body", "", "", ],
["About Us","", "", "", "", "", "", "", "", ],
["|History","D:/Web Design/CCA/About Us.html", "", "", "", "", "body", "", "", ],
You should write, for example:
["Home","", "", "", "", "", "", "", "", ],
["|Back to main page","home_body.htm", "", "", "", "", "body", "", "", ],
["About Us","", "", "", "", "", "", "", "", ],
["|History","About Us.html", "", "", "", "", "body", "", "", ],
Q: I'm just trying to get those little vertical spacers between menu items in the drop down menu.How can I do it with JavaScript Tree Menu.
A: Please, see the following parameters of the menu:
//------- Separators -------
var separatorWidth = "10";
var separatorHeight = "20";
var separatorAlignment = "center";
var separatorImage = "C";
var separatorVWidth = "20";
var separatorVHeight = "10%";
var separatorVImage = "image.jpg";
You can create separators between items in the drop down menu using menuItems, for example:
var menuItems = [
["item 1"],
["-"], // this item is separator
["item 2"], ["|item 3"],
["|-"], // this subitem is separator
["|item 4"],
];
Q: Hi I have a accessible dhtml menu item which has a word wrap on it. The word wrap it auto so instead of saying the following
Sickline Call
123456789
It says
Sickline Call 123
456789
I need to put either spaces in the title to level it out or a carage return
A: You can use any html code within accessible dhtml menu Items, for example:
var menuItems = [
["Home","testlink.html", "", "", "", "", "", "", "", ],
["Sickline Call<br>123456789","", "default.files/icon1.gif", "default.files/icon1o.gif", "", "", "", "", "", ],
Q: Would dhtml drop menu work to put the javascript command, OnClick=javascript:window.location.href=myvalue in the Link entry so that when a person clicks on the menu item, he navigates to the webpage specified in the OnClick?
A: > Would dhtml drop menu work to put the javascript command,
> OnClick=javascript:window.location.href=myvalue in the Link entry so
Actually you can use your own Javascript code instead standard links and html code inside item text. For example:
var tmenuItems = [
["text", "javascript:window.location.href=myvalue"]
];
or
var tmenuitems = [
["<div onClick='window.location.href=myvalue'>Table of Contents</div>", ""]
];
> Also, what features of IE 4 are not supported?
JavaScript Tree Menu support Internet Explorer 5+ only.
http://deluxe-menu.com/browsers-info.html