Recent Questions Simple Tree Based Menus Without Javascript
Q: Hi, I was wondering if there is a way to leave a main java swing menu bar item highlighted when in that section. For example if I clicked on "Contact Us" and when I am on the contact us page, the "Contact us" navigation would still be highlighted. I appreciate any help you might have, thanks!
A: The java swing menu bar has only two states normal and mouseover. We'll try to add the pressed state in the future.
You can set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an java swing menu bar item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem. You can't get this ID after you reload your page. That is why you should write your own code on PHP.
Q: When the page initially loads, the sizing of all the tabsappear the way I want them to.
The first time any of the tabs are clicked on in the dhtml tab menu, I get a little bit of white space and a faint vertical line just to the left of tab 1.
A: Try to set your tabs in the following way:
var bmenuItems = [
["TRACING SYSTEM","link:tracing.html", "", "", "", "AUTOMATED TRACING SYSTEM", "", "", "", ],
["DOCUMENT RETRIEVAL","link:docret.html", "", "", "", "DOCUMENT RETRIEVAL SYSTEM", "", "", "", ],
["ON SPOT BY BOOKING NUMBER","link:onspot.html", "", "", "", "ON SPOT BY BOOKING NUMBER", "", "", "", ],
["CUSTOMER PORTALS","link:portals.html", "", "", "", "CUSTOMER PORTALS", "", "", "", ],
["EDI","link:edi.html", "", "", "", "ELECTRONIC DATA INTERCHANGE", "", "", "", ],
["GPS TRACKING","link:gps.html", "", "", "", "GPS TRACKING", "", "", "", ],
["WMS","link:wms.html", "", "", "", "WAREHOUSE MANAGEMENT SYSTEM", "", "", "", ],
];
You should also set
var bselectedItem=0;
to select your first item by default in that case.
Q: Great product and incredible user friendly interface to loadeverything up! I wasn't used to such a user friendly interface and was looking way to hard.
I did have one question though. When I open up Deluxe Tuner and click on the javascript slide down menu sample to the left (with the search box), I get the following message:
I click no, and the javascript slide down menu comes up, but no search box! Any idea why this is so?
A: There will be no search box in that template.
Actually you are able to paste any html code within 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", "", "", "", "", "2", "", "", "",],
But Javascript/DHTML Tree doesn't have a search feature.
There is a search feature in JavaScript Tree Menu:
http://deluxe-menu.com/search-support-sample.html
Q: Hello.How do I remove the 5 dashed lines that appear above the first treeof the Deluxe-Tree. These lines also appear in your XP StyleSamples but they don't appear in your Deluxe-tree homepage.
http://deluxe-tree.com/data-samples/tree-menuxp2.html
A: These lines appears when you use
var tmoveable = 1; //movable menu
Try to set
var tmoveable = 0;