Recent Questions
Q: We're working on new website and including your html menu systems.
Here's what we're trying to do and it keeps giving us an error (using MS Frontpage for development):
1) We have created a single leftnav menu that will appear on all of the pages of our website.
2) We've created an html page called leftnav.htm that is only this menu. It works just fine when we preview within Frontpage. The leftnav.htm and all the menu .js files are in a unique folder within the site.
3) We then have a template page that is the base template for many of the pages on our website. There is a layout table in this template into which we do an Includepage to bring in the leftnav.htm. When we try to preview this page with the menu included, we get a script error that says "Object expected" on line #155 (the .js file only has 154 lines of code).
We're stuck. Is there a problem with how we're trying to implement the html menu systems?
A: It is possible that you'll have an error in the Frontpage's preview.
Try to open your page in browser. If you'll have the same error,please send send us a copy of your html pages (including .js files) and we will check it.
Q: Now I wonder what I have to do in my script to make dhtml sub menu be displayed horizontal instead of vertical. I want them to display vertical be left - aligned and be shown by a white Background. How can I achieve this?
A: You should set the following parameters:
var smColumns=0;
var smOrientation=1; //horizontal orientation of submenus
set white backcolor for submenus
["itemWidth=60px","itemBackColor=#FFFFFF,#FFFFFF","itemBorderWidth=0","itemBorderStyle=none,",
"itemBorderColor=#FFFFFF,", "fontColor=#404040,#404040","fontDecoration=none,underline"],
Q: How do I change the font style for menus to bold, but leave the sub-menus normal in the html navigation bar?
I understandthere’s a “fontStyle” variable, but is there an “itemfontStyle”?
A: You can use Individual Item styles to set specific parameters for eachitem or submenu.
var fontStyle=["normal 9pt Verdana","normal 9pt Verdana"]; //for subitems
//style for the top items:
var itemStyles = [
["itemHeight=21px","itemBackColor=#F2F3F2,#1665CB","fontStyle='bold 9pt Verdana','bold 9pt Verdana'"],
];
Q: Is there any way to have a floating menu float in relation to the centre of the screen (not the left of the screen). I have a centre based website. When I use the floating menu and view the site on different screen sizes, the floating menu appears in different places on the x scale. For example, I would like it 20 percent from the edge of my centre based webpage, not 20 percent from the left of the screen. I want the menu to appear on the same horizontal place on my webpage (which is centre based)
A: No unfortunately it is not possible to write
var posX="50% - 20";
You should adjust your coordinates to center the menu with absoluteposition.