Forum Moderators: open
function doInit(){
if(document.layers){
document.menu01.onmouseover=new Function("doMenu('01',1,'about_ccac')");
document.menu01.onmouseout =new Function("doMenu('01',0,'about_ccac')");
document.menu02.onmouseover=new Function("doMenu('02',1,'publications')");
document.menu02.onmouseout =new Function("doMenu('02',0,'publications')");
etc...
There were also these 2 functions that were in the code... might this be where I could change the path for the images?... document.something.yaddayadda?
function flipOn(button){eval("document."+button).src = "nav."+button+"_on.gif";}
function flipOff(button){eval("document."+button).src = "nav."+button+"_off.gif";}
The only other place I can think of where the path might be modified would be in one of the following 3 functions:
function showHide(div,nest){
obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;
if(obj.visibility=='visible' ¦¦ obj.visibility=='show') obj.visibility='hidden'
else obj.visibility='visible'
}
//Shows the div
function show(div,nest){
obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;
if ( obj ) {
obj.visibility='visible';
}
}
//Hides the div
function hide(div,nest){
obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;
if ( obj ) {
obj.visibility='hidden';
}
}
As I said, I am totally new to this and the syntax is pretty much opaque to me. I have tried simply moving the script and the images to a different directory and modifying the references in the HTML code accordingly but evidently there is a missing ingredient. Thanks again!
function flipOn(button){eval("document."+button).src = "nav."+button+"_on.gif";}
function flipOff(button){eval("document."+button).src = "nav."+button+"_off.gif";}
like so:
"path/nav."+button+"_on.gif"
It's amazing what one can do when one finally has a few free minutes to try out some ideas, eh?!