Recent Questions Dhtml Tree Without The Plus Sign
Q: I am testing it on my website.
I have under the submenu 'Generalites" two links "Presentation" and "Formulaires"
I would like when I click on what ever link on the expandable javascript menu that the visited link stay in a different color and with a different background.
For exemple:
If I click on link Presentation then this link will become in a different color and also its background.
Then If I click on Formulaire the prevous link is reset and the Formulaire link appears in a differemt color and its backgroud. How should I do it ?
A: Javascript/DHTML Tree doesn't save a pressed
item as it saves a tree state. It works within 1 page only and if youreload the page you should set a pressed item using Javascript API:
function dtreet_ext_setPressedItem (menuInd, itemID)
Please, see here:
http://deluxe-tree.com/functions-info.html
You can also set
var tsaveState = 1;
More info you can find
http://deluxe-tree.com/data-samples/tree-menuxp-save-state.htm
To expand specific items you should use API function
function dtreet_ext_expandItem (itemID, expand)
Q: I would like two level of tabs i.e.
Tab 1 entertainment
Opens up another level of tabs
Tab 1_2 movies with information displayed in the tab not on new page
Tab 1_3 music with information displayed in the tab not on new page
Tab 1_4 tv and so on...
A: Unfortunately, you cannot do it using Deluxe Tabs in TabMode. Youcannot use object ID to show in TabMode, only links.
You can use 2 menus:
Tab 1 entertainment //1st menu
--------DIV----------------------
Tab 1_2 Tab 1_3 Tab 1_4 //2nd menu
----------DIV's for second menu--------------
content
----------end DIV's for second menu ---------
----------end DIV for the first menu -------
Q: When a user clicks on a javascript flyout menu item, I want to run a javascript function.
How can I do this in the data file?
A: You can use your own Javascript code instead standard javascript flyout menu links. For example:
var menuItems = [
["text", "javascript:your_code_here"]
];
Q: Thank you so much for your time and assistance - I've been charged with this project and still struggling a little. Considering my total ignorance to code, I'm understanding much better now, but could you please take a look at the page and tell me why I now have double menus and how to correct?
A: It happens because at first you call
<SCRIPT src="CHSD Map_files/data.js" type=text/javascript > </SCRIPT >
and then you paste the content of data.js file in your code.
That's why you have two menus on your page.Please, delete one of them.