Recent Questions Javascripts Tree
Q: ["item text", "javascript:your_code_here", ...]
This won't work the java script executes when the link is clicked it is not the link itself.
Below is what I normally use and how would I incorporate that?
<a onclick="NewWindow(this.href,'name','490','400','yes');return false;" href="web/equipment/hydraulic_truck.htm">
A: I'm not sure I understand you.
You can use
NewWindow(this.href,'name','490','400','yes');
code in an item link:
["text", "javascript:NewWindow(url,'name','490','400','yes');"]
But if you don't want that, you can just insert <a> into an item text.
Q: Your drop down menu builder makes about every kind of menu except the one that is hot right now...the slider menu.
A: But we have the Tree Menu, http://deluxe-tree.com
It is the slide menu.
See also other APYCOM products:
Deluxe Tabs, http://deluxe-tabs.com
Deluxe Popup Window, http://deluxepopupwindow.com
Calendar Date Picker, http://www.calendardatepicker.com
Vista Buttons, http://vista-buttons.com
Vista Photo Gallery, http://vistaphotogallery.com
Q: Also once you click a link and go to a new page, how do you get the java choice menu tab for that new page to stay the highlighted one?
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=<?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 haven’t had any problems using the drop line menu, until now when I had to make some changes. After adding some sub-menu items on two of the drop line menu buttons, those menu’s drop down upwards, instead of downwards like the rest. I tried deleting them and remaking them, but then the menu appeared to have no image behind it, only a colour. So I duplicated a working menu item, and then modified it to be what I wanted – and it still drop down upwards!
A: Please check the following drop line menu parameter:
var subMenuVAlign="top";