Recent Questions Javascript Tree View Blog Archive
Q: I'm testing out your cascading html menu but I cannot seem to see the live version of it on line. I can view it on my computer but I cannot send a link to my coworkers so they can view it also. Am I putting the code in the right location? Please point me into the right direction.
A: It is not correctly to call data file inside H2 tag
<h2> <script type="text/javascript" src="test1.js"></script></h2>
You should write
<script type="text/javascript" src="test1.js"></script>
or
<div>
<script type="text/javascript" src="test1.js"></script>
</div>
Check that you uploaded dtree.js and test1.js files on your server.
Q: I was enthused to see you had cross-frame support for your menus. But, as I got into it, I discovered that your javascript transparent menu doesn't support frames within frames.
A: Actually JavaScript Tree Menu works correctly with nested frames in most cases.Try to install JavaScript Tree Menu in cross-frame mode. If you'll have someproblems you can send us a copy of your html page (including .js files) ora direct link to your website, so we can check it.
Q: We would like Subprograms to have a different style than the items below it to visually indicate it as a non-clickable header in my javascript drop down menu.
A: You should disable this item. You should set "_" symbol for the itemtarget.
You can also set
var fontColorDisabled="#616321";
You can also create Individual Style for the disabled item.
Q: I have setup some tabs on a site that I am designing and for some reason when i click on a tab and it links to another page it automatically highlights the first tab in the row.
I have triedfiddling with it and have not been able to figure it out. Can someone point me in the right direction to have the correct tab selected in the css tab menu after i click it and goto the page.
A: Deluxe Tabs doesn't support API functions which can return theselected 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>
</span>