Recent Questions Jquery Ajax Tree
Q: What I try to make is a menu dhtml with items having a border of only 1 px, also between the menu items. However it seems that Deluxe menu draws a 1 px line around every menu item giving an effective border line of 2 px between the area where the items touch each other. I want to have 1 px border also on the areas where the items touch each other.
Any suggestion how to fix this?
A: If you want to have the 1px border between the items only you canuse separators.
Please, see the following parameters:
//--- Separators
var separatorImage=""; //for subitems
var separatorWidth="5";
var separatorHeight="100%";
var separatorAlignment="right";
var separatorVImage="images/public/separator.gif"; //for the top items
var separatorVWidth="1";
var separatorVHeight="100%";
var separatorPadding="";
You should set a separator in the menuItems, for example:
var menuItems = [
["Home","index.cfm", , , , , , , , ],
["-"],
["About Us","about.cfm", , , , , , , , ],
];
Q: We have a problem. If the "sub menus" open downward (in a horizontal menu) and there is Flash under it, the menu disappears. It goes BEHIND the flash and can't be seen.
Is there a fix for this?
I honestly don't recall it happening before but it now does. I probably didn't pay attention. Thank you!
A: Please, check that you've set the following parameter:
var dmObjectsCheck=1;
Please, use dmenu_add.js file.For more info, please, see:http://deluxe-menu.com/objects-overlapping-sample.html
Q: What do you recommend for "remembering" the tab in the js tab menu,
so that when the page reloads the correct tab is highlighted.
A: Deluxe Tabs doesn't support API functions which can return theselected tab aslo.
You can set "bselectedItem" and " var bselectedSmItem" parametersbased on your link before you call your data file.
For example, move " var bselectedItem" and " var bselectedSmItem" parametersfrom your data file to your code.
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem=<?php echo $seltabs; ?>;
var bselectedSmItem=^lt;?php echo $selsmtabs; ?>;
</script>
<SCRIPT src="data.js" type=text/javascript></SCRIPT>
</TD>
You should define seltabs and selsmtabs using server side script.
You can also set it on every page before you call data.js file, forexample:
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem=4;
var bselectedSmItem=3;
</script>
<SCRIPT src="data.js" type=text/javascript></SCRIPT>
</TD>
Q: I have used for your software for Menu creation(Trial version). We integrated it in our appliaction running good on IE 6. It has some whitespaces also. Menu using dhtml is not displayed in IE 7 when integrated in our application. When we call your html directly in IE 7 then it displays.
In Mozilla ,menu is displayed but without transitional Effects.
I am interest buy your software. If we are assured that above issues will be fixed in licensed version.
A: > Menu using dhtml is not displayed in IE 7 when integrated in our application.Try to set exact width for the menu, for example: var menuWidth="300px";
> In Mozilla, menu using dhtml is displayed but without transitional Effects.Filters and transitional effects are features of Internet Explorer5.5+ only.
See more info here:
http://www.deluxe-menu.com/filters-and-effects-sample.html