Recent Questions Extgwt Dynamic Tree Click On Treeitem
Q: I replaced the code you suggested and I downloaded the current version of Deluxe-Tuner. I also removed the Javascript roll-overs I had elsewhere on the page and created the text.
I still get 'Error on page' when I hover over the first java scrolling menu item.
Please help! I need to buid this site out by Monday.
A: Now you have several errors in your data file:
var menuBackColor="f9f9ec";
You should write:
var menuBackColor="#f9f9ec";
The following parameters cannot be empty:
var menuBorderWidth="0";
var itemBorderWidth="0";
It is not correct to write the java scrolling menu parameter in the following way:
var itemBorderStyle=["1px","1px"];
You should write:
var itemBorderStyle=["none","none"];
If you want to add borders in the subitems you should write:
var itemBorderWidth="1";
var itemBorderColor=["#c59d1f","#c59d1f"];
var itemBorderStyle=["solid","solid"];
And to remove border from the top items you should create Individualstyle and assign it to the top items:
var itemStyles = [
["itemBorderWidth=0","itemBorderStyle=none,none"],
];
["","", "/images/nav_OFF_01.gif", "/images/nav_ON_01.gif", "", "","0", "", "", "", "", ], //assign style 0
["","", "/images/nav_OFF_02.gif", "/images/nav_ON_02.gif", "", "", "0", "", "", "", "", ], //assign style 0
...
Q: I'm using the deluxe-tree.
On the top of the tree there is a title. When i click onthe title the whole menu collapse. How can i disable this option ?
I want to keep the collapse option for the css menu tree when i click on the collapse button but not when i click on the title.
A: Try to set the following parameter:
var texpandItemClick=0;
Q: I have another question regarding the popup window. I need to use an iframe within the popup window. Is there any way I can close the onmouseover popup from the page loaded within the iframe? Something like "parent.document.getElementById('windowid').hide();". Any help would be appreciated.
A: You can close the onmouseover popup using the following function:document.getElementById('win').hide();
Unfortunately it won't work if you use iframe as window content.
You open another page in the popup (in Iframe) so you cannot accessdocument.getElementById('win').hide();
element which is situated on the first page.
When you use text or object_id as window content the content of the popup will be situatedon the same page so you can access document.getElementById('win') element and hide it.
There is a workaround.
Use text as content type and add the following code inside popup:
<a onclick="document.getElementById('win').hide();">...</a> <iframe></iframe>
Your link will work in that case.
Q: I am curious why there are no font settings for "Individual Styles" for"Submenu styles".
Basically I want to have a different font and color for my submenu items so they appear differently than the normal primary Items - but it seems there is only two options for fonts:
- The global font parameters affecting all fonts (primary and sub).
- And the Individial Styles for primary Item Styles.
Why no font paramenters for Submenu Items?
A: You can assign Item Style for the submenu item too.
See the example:
var itemStyles = [
["fontStyle=normal 13px Comic Sans MS"], //item style 0
];
var menuStyles = [
];
["Product Info","", "default.files/icon1.gif", "default.files/icon1o.gif", , , "0", , , ], //item style 0
["||How To Setup","testlink.html", "default.files/icon6.gif", "default.files/icon6o.gif", , , "0", , , ], //item style 0