Recent Questions
Q: Hello. I'm trying your javascript expanding menu but cant get a clicked menu to stay highlighted. It works sometimes in Firefox but never in explorer.
With sometimes I mean that if I click a link and that paticular link leeds to nowhere, and i've to click the browsers back button.....then the link I clicked is highlighted when I return. If I make a link that leeds to a new page (with exactly the same code as was generated from delux tuner), then nothing is highlighted. Does this 'higlightstate' work at all?
A: Javascript expanding menu doesn't save a presseditem as it saves a tree state. It works within 1 page only and if youreload the page you should set a pressed item using Javascript API:
function apyt_ext_setPressedItem(menuInd, itemID)
<script type="text/javascript">
var I = 4 //index of the selected item
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}
</script>
Q: I have just bought the software and created a first menu.
As you can see the sub-menus appear away for the menu/navigation bar.
This doesnТt happen when I put the code into an .html file without any divs.
Can you suggest what the problem might be here?
A: The problem is that the script can't get css properties of the object if they are described in separate .css block (or file).
In other words, you can't get the value of "position" attribute of the object if the object doesn't have this property within inline style(style="position:absolute"). To get the value you should move .css style into style="" attribute.
Please, try to add your
css file -> inline css, for example:
You should add <DIV id=nav_bar_main>
to the
style="position:absolute;"
So, you'll have:
<DIV id=nav_bar_main style="position:absolute;">
Check that.
Q: Do you have a product that serves as a cascading drop down menu where you can override the width of the display?
A: You can use "smart scrolling" feature in this case for the Deluxe Menu.
To disable/enable the "smart scrolling" for the main items and submenus use the following javascript scrolling menu parameters:
var smSmartScroll = 1;
var topSmartScroll = 1; (works if var menuWidth isn't empty)
You can also specify height and width for each separate submenu using the following menu parameters:
var smWidth = "100px";
var smHeight = "300px";
Q: Can I just have the date displayed without the time in the javascript calendar date selector?
A: But you can chose the output data format.
See more info:
http://www.calendardatepicker.com/parameters.html#param
calendarDatePicker.handlers( ['txt', 'txt', {type : 'date', format: '%d-%m-%Y'}] );
The result will be: 12-02-2009