Recent Questions Javascript Tree Div Drag Drop
Q: I've finally got it working and it looks good. So thanks. But... unfortunally there's still a small problem wich occured after I got everything else working: No matter if I set the parmeter " var texpanded" to '1' or '0' it expands by default tree menu javascript. Why?
I also have another question I forgot to ask you about earlier: Originally I only had the data.js file but in the non-profit zip file you gave me there was no "data.js" file, only "data-tree.js". Wich one will the script use? Do I need both? The javascript call I put where I want the menu to appear calls for "DATA. js". So what good does the "data-TREE.js" file do?
I include the "data.js" file if you need to have a look at it. The "data-tree. js" file is identical now that I changed all the " var tmenuItems" at the bottom). (The "menu.html" I guess you can look at yourself by "View source".)
Also, the submenus where I would like to put XP style menus are not finished yet but for now I have the same "tree" script in them. They are under "DART/dartspel.html", and on six artist discographys under MUSIK: Edguy, Katie Melua, Joe Satriani, Michael Schenker, Trans-Siberian Orchestra and Magnus Uggla. This is if you'ld like to see the sub pages where I use other "copys" of Deluxe-tree. (I hope you don't mind that the "Illegal copyright" nag is very small. It's supposed to dissapear anyway with the new Non-profit license).
A: 1) See the structure of your tmenuItems is incorrect now.
You should write:
["->HEM (Klicka f?r meny)","welcome.html", "data.files/hem.gif", "data.files/hem2.gif", "data.files/hem.gif", "Startsidan", "right", "", ],
Without '|' symbol in the beginning.
2) You should write tleft parameter correctly. Now you have:
//--- Positioning
var tabsolute=1;
var tleft="00px";
var ttop="10px";
Write it in the following way:
var tleft="10px";
3) data-tree.js file is the default tree menu javascript file. There is no need to use it if you already haveyour data.js file.
Q: Does the Deluxe menu work to load pages into an iframe?
(name=iframe1) I can't find any info on this ...
A: Of course. Please, use this parameter:
var itemTarget = "frame_name";
Q: Javascript menu frame Borders are present Firefox but missing in IE7, IE8, Google Chrome, Safari.
Firefox shows the borders ok.
A: You've set the following parameters in this menu:
var menuBorderColor="#FF9191 #FF7837 #E10000 #952D00 ";
var menuBorderWidth=3;
var menuBorderStyle="";
You should specify style for your border, for example:
var menuBorderStyle="solid";
See the attached example. I cannot notice such issue on Safari forWin. Write what version you're using.
Change also
var fontStyle=["normal 8pt Verdana,normal 8pt Verdana","normal 8pt Verdana,normal 8pt Verdana"];
to
var fontStyle=["normal 8pt Verdana","normal 8pt Verdana"];
Q: I want to have one of the drop menus use a different image.
I am using thevista images and would like to have all of them but one use the same imageand the last one a different one. Can this be done?
If not I was able to adda second menu with the different image but for some reason the second menuwill not drop down. Can you help me with either of these?
A: You should create Individual Style for the last item and assign another image for it.
var itemStyles = [
["itemWidth=92px","itemHeight=21px","itemBackColor=transparent,transparent","fontStyle=normal 11pxTahoma","fontColor=#FFFFFF,#FFFFFF","itemBackImage=data-vista-01.files/btn_black.gif,data-vista-01.files/btn_black_blue.gif"],
["itemWidth=92px","itemHeight=21px","itemBackColor=transparent,transparent","itemBackImage=data-vista-2-03.files/btn_green.gif,data-vista-2-03.files/btn_green2.gif","fontStyle='normal11px Tahoma','normal 11px Tahoma'","fontColor=#FFFFFF,#FFFFFF"],];
var menuItems = [
["Home","testlink.html", "", "", "", "", "0", "0", "", "", "", ], //style 0
["Product Info","", "", "", "", "", "0", "", "", "", "", ], //style 0
...
["Purchase","http://deluxe-menu.com/order-purchase.html", "", "", "", "_blank", "0", "", "", "", "", ], //style 0
["Contact Us","testlink.htm", "", "", "", "", "1", "", "", "", "", ], //style 1];