Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question. Please also put some effort into formating your post/ code.
Regarding your question, just make sure the references to any file within the .js file, including the .js file itself, are aboslute URLs:
Code:
<script language="JavaScript" type="text/javascript" src="http://www.mysite.com/scripts/dahlgren.js"></script>
and:
Code:
function slash_expandall(){
if (typeof menu!="undefined"){
for(i=0; i<Math.max(titles.length, submenus.length); i++){
titles[i].className="title";
arrows[i].src = "http://www.mysite.com/menu_files/expanded.gif";
submenus[i].style.display="";
submenus[i].style.height = heights[i]+"px";
}
}
}
function slash_contractall(){
if (typeof menu!="undefined"){
for(i=0; i<Math.max(titles.length, submenus.length); i++){
titles[i].className="titlehidden";
arrows[i].src = "http://www.mysite.com/menu_files/collapsed.gif";
submenus[i].style.display="none";
submenus[i].style.height = 0;
}
}
}
and so on. There may be other references you have to locate and change to absolute URLs...
Bookmarks