Recent Questions Javascript Tree Degrades
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, ...]
];
***
Q: I was able to install the rollover dropdown menu pretty easily. However, how do I make the text of it bigger for the main items? I can change the text easily for the subitems.
I can't find anyway to do this. Also, if I edit the size of the before/after for the buttons, do I need to edit anything else in the javascript? Most of their heights is 23px but I wnat to make it 27px.
Let me know and I will purchase the software if I can get it to work.
A: Try to change Individual Item styles. I suppose that you're usingIndividual style for the top items now.
Q: I used the drop menu creator to create a simple tab example, and I created a simple HTML file to display the tabs. It initially appears fine when the page first displays (e.g., the correct div is hidden), but when I *first* click on a tab I always get a javascript error deep in the .js code. Then I click around a bit between the tabs and get some display problems (no more javascript errors though), until finally the show/hide logic recovers and all looks ok.
The error I initially get is something like “tabs[…].id is not an object”. I have the IE7 debugger turned on, otherwise I might not ever see this error.
FYI, I tried your example menus on your web site and everything is fine! Maybe the .js files on your web site are not the same as those created by the generator?
A: You should set the following parameter in drop menu creator:
var bselectedSmItem=0;
Q: I downloaded a trial version of your software and I did so because your description says it can utilize a database.
I have tried to modify a menu with my database, but with no success.
If you can shed some light on this, I would greatly appreciate it.
Once I can successfully alter a menu with a database, then I will purchase this software.
A: You can find the example with PHP here:
http://deluxe-menu.com/generate-menu-from-database-xml-php-asp-vb-support.html
http://deluxe-menu.com/rq-loading-bar-MySQL-support.html