Recent Questions Javascript Tree File Explorer Code
Q: How do you configure settings so that on default a specific "Tab" is always set to on or shown as the preselected Tab in the javascript tab menu,I have a eStore page where I would like to insure that a specific Tab isalways shown on default and all others are hidden on the first revealingof the page?
Can you help?
A: Use he following parameters to set the selected top and submenu items:
var bselectedItem = 0;
var bselectedSmItem = 0;
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: Also. I'm very pleased to see a change font mouse over event, but I can't find where to change this in java menu program, can you help ?
A: You can set font color for mouse over state in java menu program (Font/section fontStyle parameter).
Q: I need to include background images for my navigation, so I put them in the same folder where the "data.js" file can be found. I am using the deluxe tuner in order to call these files and it looks great in the preview. As soon as I save the file and load it in the browser, the background images are missing.
Your solution refers to creating absolute paths using
var pathPrefix_img = "http://domain.com/images/";
I have implemented this solution but I still think the problem persists.
A: Now you set pathPrefix parameter:
var pathPrefix_img = "http://www.domain/folder/menudir/dataAlumni.files/";
And you have such images paths, for example:
var arrowImageSub=["dataAlumni.files/submenuIconOff.gif","dataAlumni.files/submenuIconOn.gif"];
So you have such paths for arrows:
http://www.domain/folder/menudir/dataAlumni.files/dataAlumni.files/submenuIconOff.gif
It is not right.
You should write your paths so:
var arrowImageSub=["submenuIconOff.gif","submenuIconOn.gif"];
Please, correct it.
Q: The dhtml floating menu does not align to the top of the column and it migrates as one scrolls up or down the page. I would like it to stay in one place.
A: 1) Add valign="top"> parameter for the TD tag with the menu:
<td valign="top">
<script type="text/javascript" src="welcome_files/frenchdata.js"></script>
2) Open your frenchdata.js file in any text editor (or Deluxe Tuner) and change:
var absolutePos=0;
var posX="20px";
var posY="120px";
to
var absolutePos=0;
var posX="0px";
var posY="0px";
3) To turn off the floating feature you should set the following parameter in yourfrenchdata.js file:
var floatable=0;