Recent Questions Javascript Tree Representation
Q: Your frameset FAQ/examples seem to tackle scenarios where submenus open in frame 2. I'm interested in in the actual menu selection opening in frame 2 (menus being in frame 1). Is there some documentation I've missed?
A: All info about installation of the menu in the cross-frame mode youcan find here:
http://deluxe-menu.com/cross-frame-mode-sample.html
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: Hello, I’ve set my menus up so that they are positioned on my page within a container div (not using the positioning built into the menu script).
I am also trying to use the autoscroll feature as some of the submenus are quite long. The autoscroll doesn’t seem to work with the css positioning though.
I also tried to size the submenus to force them small and thus to scroll with no luck.
The scrolling works fine when I pull the menus out of the container div and just place them in the flow of the page.
Am I doing something wrong or are these two features incompatible with each other.
A: Unfortunately, it is really so. Submenu scrolling doesn't work with css. We'll try to fix it in the future versions.
You can try to use multicolomn submenus.
http://deluxe-menu.com/multicolumn-menu-sample.html
Q: I need to set individual itemtargets for a number of items in the navigation bar menu...
A: You can set target parameter for all items:
var itemTarget="_blank";
or
var itemTarget="main";
where main - is the name of the main frame where you want to open the link
or for each item individually:
["Home","testlink.html", "", "", "", "_blank", "", "", "", "", "", ],
...
["Home","testlink.html", "", "", "", "main", "", "", "", "", "", ],