Recent Questions Dotnetnuke Treeviewmenu Event Onload
Q: Can I choose what menus will be expanded or collapsed in the tree menu javascript when the user comes to the webpage for the first time?
A: You can expand some items by default.
Add '+' sign before items text in that case:
["+Javascript/DHTML Tree: XP Style","", "deluxe-tree.files/xpicon1_s.gif", "", "", "XP Title Tip", "", "0", "", "", ],
["|Home","testlink.htm", "deluxe-tree.files/icon1_s.gif", "deluxe-tree.files/icon1_so.gif", "", "Home Page Tip", "", "", "", "data-new.js", ],
"Javascript/DHTML Tree: XP Style" item will be expanded by default in that case.
Use var texpanded=1; parameter to expand all menu items by default.
Use function dtreet_ext_expandItem (itemID, expand) API function to expand the specific menu items dynamically:
http://deluxe-tree.com/functions-info.htmlQ: I am having great problems making my tab working, I seems to select the second tab by default.
I have looked in your frequent asked questions and tried the below suggestion, I have not used the registered domain as I am in the process of design.
var bselectedItem = 3;
Where 3 is the number of your menu item from the var bmenuItems parameter.
var bmenuItems =
[
["Mac Tab 1", "content1"],
["Mac Tab 2", "content2"],
["Mac Tab 3", "content3"],
["Mac Tab 4", "content4"], // selected tab
];
The ID of the item starts with 0.
Try that.
But without success?
Any idea?
Please advice
A: See, the ID of the item starts with 0.
So, if you use TabMode ( var tabMode=1;):
var bselectedItem = 10;
["-", ] - separator, ID = 0
["Mac Tab 1", "content1"], ID = 1
["Subitem1","testlink.html",] ID = 2
["Subitem2","testlink.html",] ID = 3
["Mac Tab 2", "content2"], ID = 4
["Subitem1","testlink.html",] ID = 5
["Subitem2","testlink.html",] ID = 6
["Mac Tab 3", "content3"], ID = 7
["Subitem1","testlink.html",] ID = 8
["Subitem2","testlink.html",] ID = 9
["Mac Tab 4", "content4"], // selected tab ID = 10
["Subitem1","testlink.html",] ID = 11
["Subitem2","testlink.html",] ID = 12
If you use tabs ( var tabMode=0;):
var bselectedItem = 2;
["-", ] - separator, ID = 0
["Mac Tab 1", "content1"], ID = 1
["Mac Tab 2", "content2"], ID = 2 // selected tab
["Mac Tab 3", "content3"], ID = 3
["Mac Tab 4", "content4"], ID = 4
Q: The dhtml floating menu does not align to the top of the column and it migrates as one scrolls up or down the page. I would like it to stay in one place.
A: 1) Add valign="top"> parameter for the TD tag with the menu:
<td valign="top">
<script type="text/javascript" src="welcome_files/frenchdata.js"></script>
2) Open your frenchdata.js file in any text editor (or Deluxe Tuner) and change:
var absolutePos=0;
var posX="20px";
var posY="120px";
to
var absolutePos=0;
var posX="0px";
var posY="0px";
3) To turn off the floating feature you should set the following parameter in yourfrenchdata.js file:
var floatable=0;Q: I purchased a menu system from you and someone else programmed it so I am left to fix it. When you go the page, their is a weird delay, is it possible for you to tell me what is wrong in the html javascript menu?
A: You're using additional features in the menu now
var keystrokes=1;
var floatable=1;
But there are no dmenu_add.js and dmenu_key.js files in the
http://www.domain.com/Hbsound.files/
folder on your server.
I advise you to upload all menu engine files.