Recent Questions Flash Treeview ExampleQ: Greetings. How do I make a menu item as default selected and open when the page loads with the dhtml menu bar script? Thanks.
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, forexample:
<noscript><a href="http://deluxe-menu.com">dhtml menu bar script by Deluxe-Menu.com</a></noscript>
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a dhtml menu bar script on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an 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: Thank you for such an excellent product. I have a question pertaining to the submenu items in your tree-menu line. My menus are 540px wide and contain lots of text with good sized pictures (icons). Can I use an iframe tag inside of the css menu submenu instead of simple text with this icon?
A: You are able to paste any html code within items.
So you can paste a form too.
var menuItems = [
["||<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
"images/icons/search.gif", "", "", "", "", "2", "", "", "",],
Q: I tried to create this html version and it is still not working.
I have saved all of the files in the correct places and what it gives me is just all of the links in a straight line across the top of the page.
I really think it is sitebuilder that is creating the issue with the structure of the head and body tags, but I a am a little new so I may be wrong.
A: You should delete tag from your code.
Please delete the following string from your html page.
A: Unfortunately, you can't assign onmouseover/onClick/onContextMenu event to each item.
However, you can achieve this by using standard html objects within items, for example:
var menuitems = [
["<div onContextMenu='your_code_here'>item text</div>", ""]