Recent Questions Small Javascript Tree View Form
Q: Your service is excellent and I am making progress learning the program. I was able to resolve the transparency issue thanks to your help but, but now I have another one that is stumping me.
I can get the menu to show up in my html document and it works as I hoped it would. However, no matter where I put the line of code in my html file, the down menu in dhtml always shows up at the very top of the page. The instructions indicate the following:
Copy the following code into clipboard and paste it into the place you want to have the down menu in dhtml:
<script type="text/javascript" src="newmenu2.js"></script>
For example, into a table cell:
<table>
<td><script type="text/javascript" src="newmenu2.js"></script></td>
</table>
No matter where I put the code:
<script type="text/javascript" src="newmenu2.js"></script>, the menu shows up at the top of the page.
What am I missing?
A: Check that you're using relative position for the down menu in dhtml:
var absolutePos=0;
var posX="0px";
var posY="0px";
Q: I know this must be somewhere in your support information but I can't find it. Can you tell me something I could do for people who have Javascript turned off so they can at least use my base menu (not the submenus).
A: When your security settings in IE doesn't allow Javascript onpages you load you can't see a dynamic page content.
There is no way to enable these preferences automatically, in othercase there are no reasons to create security preferences.
Please, try to use search engine friendly code you'll see all yourlinks.
You can generate search engine friendly code.
JavaScript Tree Menu is a search engine friendly menu since v1.12.
To create a search engine friendly menu you should add additional html code within your html page:
<div id="dmlinks">
<a href="http://deluxe-menu.com">menu_item_text1</a>
<a href="http://deluxe-tree.com">menu_item_text2</a>
...etc.
To generate such a code use Deluxe Tuner application.
You can find this GUI in the trial package.
Run Tuner, load your menu and click Tools/Generate SE-friendly Code (F3).
Q: we want to be able to specify a certain height (or number of items) for the main menu after which a new column is created.
A: Unfortunately it is not possible to specify a number of items after which a new column is created.
But you can use blank items and create Individual Style for theseitems.
For example:
["| ","", "", "", "", "", "0", "", "", ], //empty item
["|Item 42","", "", "", "", "", "", "", "", ],
["| ","", "", "", "", "", "0", "", "", ], //empty item
["|Item 44","", "", "", "", "", "", "", "", ],
Q: Is it possible to change the mouseover font style to bold within the deluxe menu?
A: Unfortunately, JavaScript Tree Menu can't change font weight.
If you want to do that you can paste your own <div> withinitem's text field and change a font yourselves.
For example:
***
function changeFont(obj, over)
{
obj.style.fontWeight = over ? 'bold' : 'normal';
}
var menuItems = [
["<div onMouseOver='changeFont(this, 1)' onMouseOut='changeFont(this, 0)'>item text</div>", link, ...]
];
***