Recent Questions Js Tree In Sharepoint
Q: I need to know how to have the background in the main items of the dynamic menu transparent, and then the sub-menus a different translucent color.
A: To set transparent background for the menu you should set:
var menuBackColor="transparent";
var itemBackColor=["transparent","transparent"];
and use Individual Item Styles for your submenus:
var itemStyles = [
["itemBackColor=#8EE8E1,#26BBB0"], //style0
["itemBackColor=#F4B7FB,#E65AF5"], //style1
];
var menuItems = [
["Home","testlink.html", "", "", "", "", "", "", "", ],
["Product Info","", "default.files/icon1.gif", "default.files/icon1o.gif", "", "", "", "", "", ],
["|Features","testlink.html", "default.files/icon2.gif", "default.files/icon2o.gif", "", "", "0", "", "", ], //style0
["|Installation","", "default.files/icon2.gif", "default.files/icon2o.gif", "", "", "1", "", "", ], //style1
["||Description of Files","testlink.html", "default.files/icon6.gif", "default.files/icon6o.gif", "", "", "", "", "", ],
["||How To Setup","testlink.html", "default.files/icon6.gif", "default.files/icon6o.gif", "", "", "", "", "", ],
["|Parameters Info","testlink.html", "default.files/icon2.gif", "default.files/icon2o.gif", "", "", "0", "", "", ], //style0
["|Dynamic Functions","testlink.html", "default.files/icon2.gif", "default.files/icon2o.gif", "", "", "1", "", "", ], //style0
["|Supported Browsers","", "default.files/icon2.gif", "default.files/icon2o.gif", "", "", "0", "", "", ], //style0
["||Windows OS","", "default.files/icon3.gif", "default.files/icon3o.gif", "", "", "", "", "", ],
["||Internet Explorer","", "default.files/icon5.gif", "default.files/icon5o.gif", "", "", "", "", "", ],
["||Firefox","", "default.files/icon5.gif", "default.files/icon5o.gif", "", "", "", "", "", ],
["||Mozilla","", "default.files/icon5.gif", "default.files/icon5o.gif", "", "", "", "", "", ],
["||Netscape","", "default.files/icon5.gif", "default.files/icon5o.gif", "", "", "", "", "", ],
["||Opera","", "default.files/icon5.gif", "default.files/icon5o.gif", "", "", "", "", "", ],
["||MAC OS","", "default.files/icon3.gif", "default.files/icon3o.gif", "", "", "", "", "", ],
["||Firefox","", "default.files/icon5.gif", "default.files/icon5o.gif", "", "", "", "", "", ],
Q: I bought on September 28th the complete pack Deluxe after having tried it for an application which is not a site but which contains HTML pages and drop-down menus which were made with deluxe tree.
I deleted the trial version and installed the definitive version.
I placed the key the var key = "XXXXXXXXX; in each of my menus (three in everything) and I replaced dtree.js, dtree_add.js and dtree_dyn.js by those of the new version in each directory
Now when I relaunching I have an incorrect key which appears in the top of the menus...
Why?
Is these key has a relationship with the name of the site indicated during the order? By reading again the information I indicated the name of my site but it is not for this site that I wished the menu drop down, only for this application which has no precise name...
A: See, you should register the menu for a domain name or for IP address.
In other words, you should register the menu for the domain name thatyou print in a browser's search string, for example:
http://intranet/
http://klinikum-nuernberg/
http://192.168.0.1
http://localhost
But you menu won't work on a local machine, for example
j:\Stationshandbuch\start.html
with Single or Multiple licenses.
If you want to use the menu with an application that doesn't have afixed domain name you should buy Developer License.
With the Developer license you can use the menu on an unlimited number of Internet or Intranet sites and on the local machines.This version of the script doesn't check keys and it isn't bound to a domain name,so it can be used with an application that doesn't have a fixed domain name.
Q: If is there any way I can give some space between pressed_item and hover item for the rollover menus
A: You can try to specify spacing parameter:
var itemSpacing=1;
You can also try to use separators.
You should add separator between menu items:
["item","#", "", "", "", "", "", "", "", "", "", ],
["-",],
["item","#", "", "", "", "", "", "", "", "", "", ],
Use "Add Separator button in Deluxe Tuner.
Set separator parameters in the following way:
//--- Separators
var separatorImage="";
var separatorWidth="100%";
var separatorHeight="2px";
var separatorAlignment="left";
var separatorVImage="data.files/separator.jpg";
var separatorVWidth="2px";
var separatorVHeight="100%";
var separatorPadding="0px";
Q: Can data be loaded dynamically?
For example, can your dhtml menu source code load the child of a node once the node is clicked on?
A: You can use AJAX like technology.
http://deluxe-menu.com/ajax-technology-menu-sample.html
You may generate a menu from a database or XML using any server-side script, e.g., PHP, ASP, VB, etc.
However, these scripts don't work inside of Javascript .js files, so, you should move parameters of a menu from a .js file into an html-page, e.g.:
<!-- JavaScript Tree Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<!-- (c) 2006, http://deluxe-menu.com -->
<script type="text/javascript" language="JavaScript1.2">
// and describe parameters of a menu
var parameter1=value1;
var parameter2=value2;
etc.
var menuItems = [
// here you generate items using server-side scripts (php, asp, vb, etc.)
];
</script>
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.html