Recent Questions
Q: I'm looking at evaluating your Deluxe menu software for inclusion in our current web based software solution and am particularly taken with the 'Ajax style' loading.
Could you please answer a couple of questions with respect to that.
At what point does it load those file ¦ initially when menu is drawn (so multiple small hits to app server) or when the user selects the menu? Does the link href *have* to be a .js file ¦ or can it be any valid file type that returns the correct data? I have to generate the menu options dynamically from a DB and therefore really need to include a JSP style file.
Our current menu system (made up of 4 levels deep contains over 300 links, which is why I want to minimise server hit as much as possible!
A: It loads when the user move his mouse above the menu items.
You can use any extension for these files. But the file structureshould be the same as in our example.
Q: I need to load a tab page and have the correct javascript menu rollover tab showing based on a variable that is available when the page loads. How do I get the tab to change to a different tab then the one defined in the configuration file?
Example
bmenuItem = 0; /* this is the default */
When my page reloads I want bmenuItem = someVariable;
How do I do this?
A: Deluxe Tabs doesn't support API functions which can return theselected javascript menu rollover tab.
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=<?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 am afraid I am still having difficulties.
Key issue is fine, no problems there. However, I cannot seem to make this NOT showing me a window open example when the page opens. I just want to have popups upon click. What I want is to be able to create links, within the same page, that will popup windows of different content and size, all upon click (not upon page loading.
What am I doing wrong here?
In the site I have the following:
1. A www.domain.gr/deluxe-popup-window.files folder
2. A http://www.domain.gr/deluxe-popup-window.js script
3. and my test page creating the popups
So, in my sample page:
1. I do NOT want to have the 1st popup which loads automatically as the page opens
2. I want to have the 2 samples shown there, Sample 2 and Sample 3.
3. These 2 samples must show windows of different width and height.
Please help me here.
Looking forward to your answer.
A: Delete openAfter= text from the deluxePopupWindow.attachToEvent()function in the following file:
http://www.domain.gr/deluxe-popup-window.js
In that case popup window won't show till you click on the link.
deluxePopupWindow.attachToEvent(win,',,,,,')
Q: Can your dhtml drop down menus work in conjunction with a scroll wheel?
A: You cannot scroll submenus using scroll wheel when you set
var smSmartScroll=1;
To scroll your submenu you should move your mouse.
But you can use scroll wheel when you set
var smSmartScroll=0;