Recent Questions Treestyle Css
Q: Is there a way to make the dhtml pull down menu not reset after a link is clicked.
Now every time I click a link in the tree menu it takes me to the linked page
but all the menus re-expand.
A: When user clicks the link, the browser loads a new page and the script re-create the menu.
If you want to open the needed section automatically on load you can use the following:
1. Save the state to cookies
var tsaveState=0;
2. Use frames
3. Put the special script on each page of site that will open appropriate section:
(dtreet_ext_expandItem)
See more info here:
http://www.deluxe-tree.com/functions-info.htmlQ: I have another question:
Menu behavior in SAFARI is does not properly work compared to EXPLORER.
If you have a look at the site via SAFARI, please do the following:
Example:
Under menu "Projets" select "par pays" then "Afrique" then "Algerie".
It will then show a left hand menu. Please select "2008/2010".
It will correctly show content.
Then if you try to select again via menu "Projets"; the html menu navigation does not show anymore the submenus. You still need to click a menu without submenus, like "News", and then afterwards you can click "Projets" and the system will again show submenus.
This strange behaviour does not appear in EXPLORER nor in FIREFOX.
A: The problem is in your frame structure after you open "Projets" select "par pays" then "Afrique" then "Algerie".
Your menu won't work correctly with such frame structure.
You should use the following frame structure for all pages at once:
--------------------------------------------------------
topFrame with the html menu navigation
--------------------------------------------------------
Algerie_leftFrame |
with | Algerie_mainFrame
Tree Menu |
--------------------------------------------------------
bottomFrame
--------------------------------------------------------
and write your init function in the following way:
dm_initFrame("frmSet", 0, 2, 0);
Or you shouldn't use Algerie_leftFrame and Algerie_mainFrame at all (use one mainFrame) and write your init function in the following way:
dm_initFrame("frmSet", 0, 1, 0);Q: I use menu with color graphic buttons, I believe the color buttons locate in @BOOK1\@Test_BOOK1.files.
At this directory level(please look in Book1.zip), the display is OK,
However, if I click on "06) Introduction.to.Small-Signal.Amplifiers\<
>>(06_IT.htm)" to move to the next level, the color buttons will not display properly.
Can I set pointer that tells file 06_IT.htm that I have "@Test_BOOK1.files" in "@BOOK1" folder?
A: You can use additional parameters to make menu paths absolute:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";
These parameters allow to make images and links paths absolute.
For example:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";
var menuItems = [
["text", "index.html", "icon1.gif", "icon2.gif"],
];
So, link path will be look so:
http://domain.com/pages/index.html
Images paths will be look so:
http://domain.com/images/icon1.gif
http://domain.com/images/icon2.gif
Please, try to use these parameters.
Q: I am working with drop down menu creator that I just downloaded and am having problems with where the menu is being placed. It looks likemaybe the "trial" logo is in the right spot but the menu is appearing several rows below where I insert it. Any ideas?
A: Try to set the following parameters:
var posX="0px";
var posY="0px";