Recent Questions
Q: Thank you so much for your time and assistance - I've been charged with this project and still struggling a little. Considering my total ignorance to code, I'm understanding much better now, but could you please take a look at the page and tell me why I now have double menus and how to correct?
A: It happens because at first you call
<SCRIPT src="CHSD Map_files/data.js" type=text/javascript > </SCRIPT >
and then you paste the content of data.js file in your code.
That's why you have two menus on your page.Please, delete one of them.
Q: Also, when viewing the webpage with the dhtml list menu, my browser tells me that it is blocking scripts and ActiveX applications. I have to override it. Is there a way to prevent this so my customers don't get this message, or will it go away when I post it to my domain?
A: You should adjust your browser settings.
Tools/Internet Options/Advanced Options/
and set
"Allow active content from files to run on My Computer".
There is no way to enable these preferences automatically, in othercase there are no reasons to create security preferences.
Q: I've been trying to get the menu item in dynamic tree menu to stay highlighted when clicked on and directed to that page.
A: Tree Menu doesn't save a presseditem as it saves a tree state.
It works within 1 page only and if youreload the page you should set a pressed item using Javascript API:
function apyt_ext_setPressedItem(menuInd, itemID)
<script type="text/javascript">
var i = 4 //index of the selected item
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}
To expand specific items you should use the following function:
dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex (0, 11), 1);
Q: At the very beginning of each javascript close menu item (exception for top level item using "XP-Style") there is always a small gap of 2px width.
Firebug show me this small piece of code :
***********************************
<td id="" style="margin: 0px; padding: 0px;">
<img id="" width="2" height="1" border="0" style="display:
block;" src="images/blank.gif"/>
</td>
***********************************
Is there a way to avoid this ?
A: You should set the following parameter in that case:
var tXPBorderWidth=0;