Recent Questions Xtree Js Remember Tree Path
Q: I've encountered a problem when I was creating my collapsible menu javascript. I got an error message when I was creating my menu as follows:
----------------------------------
There is the error in the data file. The menu won't be loaded correctly.
Line: 361
Char: 3
Code: 0
Message:']' f=F6rv=E4ntas
----------------------------------
A: You have errors in your data file now. It is not correctly to writeitems in the following way:
["||10"","", "", "", "", "", "", "", "", "", ],
["||11"","", "", "", "", "", "", "", "", "", ],
You should write:
["||10","", "", "", "", "", "", "", "", "", ],
["||11","", "", "", "", "", "", "", "", "", ],
Q: I would like all my submenus of the html menu to appear in the same location on the page and not relative to the parent menu item.
A: You can do it using the following parameters:
var subMenuAlign = "left"; - Horizontal alignment for submenus.
"pleft", "pcenter", "pright" - alignment relative to the parent submenu.
var subMenuVAlign = "top"; - Submenus vertical alignment.
"ptop", "pcenter", "pbottom" - alignment relative to the parent submenu.
Q: Once again, I need your help....I have gone through my eniter site to fix what it takes to keep this menu from hiding the flash header when you role over the main menu items. It still hides. The problem still exists. Help!
A: You should add the following function in the beginning of your data file
function dm_ext_ruleObjectHide()
{
// Safari detect
if ((parseInt(navigator.productSub)>=20020000) && (navigator.vendor.indexOf('Apple Computer') != -1) && (navigator.product=='Gecko'))
return true;
else
return false;
}
You should add this function each time you change your menu in DeluxeTuner as it deletes this function from your data file.
Q: Thank you for your quick service. Question for you, in the templates java expanding menu - Standard Tree Menu. There is an option to search by Index and also word query. When I bring the Template up I dont see this option on the sample menu. I'm I missing something or do I need to add it. If I need to add it can you explain to me how to do it.
A: You are able to paste any html code within java expanding menu items.
For example:
var tmenuItems = [
...
["<nobr><FORM method=GET action='http://www.google.com/custom'><input name='as_q' value='search
the web' size=15 style='font-size:10'> <INPUT type=hidden name=cof
value='LW:144;L:http://domain.edu/images/sulogo.gif;LH:45;AH:center;GL:0;S: http://domain.edu;AWFID:e01cb67b8afe383e;'></form></nobr>","", "images/icons/search.gif", "", "", "", "", "", "", "", "",],
You should write your own code within tmenuItem.