Recent Questions Javascript Dtree Remove Node
Q: I downloaded the trial version of Deluxe Tuner and love the menus it makes. I'm havinga major problem centering the expandable menu in a table. I'm using FrontPage 2002 but added thescript into the page via notepad. No matter what I try, the expandable menu stays on the left ofthe table. Do you have any suggestions? I'm sure you must have a list of problemsassociated with FrontPage. Can you please help me?
A: To center the menu on your html page you should set the followingparameter and install the menu in the following way:
var absolutePos=0;
<div align=center>
<script type="text/javascript" src="deluxe-menu/dmenu.js"></script>
</div>
<table width=800>
<tr>
<td align=center width=600><script type="text/javascript"
src="data/data.js"></script></td>
</tr>
</table>
Q: I just need to know if there is a way of establishing the width at "runtime" in the javascript dynamic menu so that my frame in my frameset can be widened accordingly.
A: There are no special parameters for menu dimensions.
But you can use submenu IDs. For example, top-menu has ID"dmXXXm0"
Where XXX - menu index. So, first menu on the page has ID "dm0m0".
So, you can determine menu dimensions so:
document.getElementById('dm0m0').offsetWidth
document.getElementById('dm0m0').offsetHeight
You can also use Javascript API functions to take submenu IDs.
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: A brief one on dynamic menu in the perspective of bilinguism
I understood from the tuner that a menu can be made dynamic (although it is somewhat minimally documented ;-))
Leaving alone all the beautiful sophisticated and complex mechanic of it
Say I have my main menu that says :
var dynamic=1; (that's all I got from the doc ..)
And then
var menuItems = [
["Choice 1 ","page1.php", "", "", "Choice 1",", "_self", "", "", "", "", "", ],
["Choice 2","page2.php", "", "", "Choice 2", "_self", "", "", "", "", "", ],
];
Minimalist ? ;-) right ?
1/ first I'm not too sure about what exactly in order are these 11 parameters although I'm fine with the only 4 I have here
2/ if I would want to change on the fly menu javascript dropdown page on a PHP parameter Page1.php?lang=French (I perfectly master how to capture the PHP value)
So that My menu becomes on the fly
["Choix 1 ","page1.php", "", "", "Choix 1",", "_self", "", "", "", "", "", ],
["Choix 2","page2.php", "", "", "Choix 2", "_self", "", "", "", "", "", ],
Thanks in advance if you can shed some light on this
PS : And although I used hardly 1% of deluxe capability my first customer is very happy about it..
A: Actually you can find all info about the menu javascript dropdown parameters and featureson our website:
- menu parameter and items, Individual Styles:
http://deluxe-menu.com/parameters-info.html
http://deluxe-menu.com/menu-items-info.html
http://deluxe-menu.com/individual-item-styles-info.html
http://deluxe-menu.com/individual-submenu-styles-info.html
- dynamic functions:
http://deluxe-menu.com/functions-info.html
http://deluxe-menu.com/dynamic-functions-sample.html
> 2/ if I would want to change on the fly page on a PHP parameter
> Page1.php?lang=French (I perfectly master how to capture the PHP value)
> So that My menu becomes on the fly
> ["Choix 1 ","page1.php", "", "", "Choix 1",", "_self", "", "", "", "", "", ],
> ["Choix 2","page2.php", "", "", "Choix 2", "_self", "", "", "", "", "",> ],
To change the menu items on the fly you can use API functions
function dm_ext_changeItem (menuInd, submenuInd, itemInd, iParams)
function dm_ext_addItem (menuInd, submenuInd, iParams)
function dm_ext_changeItemVisibility (menuInd, submenuInd, itemInd, visibility)