Hello,
I'm in a quandary as to how to address a problem. The site in question:
http://agapeyoga.com
On the left-hand side of the site are image navigation elements that
change when clicked based on where you are in the navigation heirarchy.
They work just fine in IE, but Firefox doesn't load the initial state
of the images. If you mouse over the images that have onmouseover or
onmouseout events, though, the images associated with those events do
pop up correctly. I have tired a few "best guess" stabs using OnLoad
events to no avail. Grateful for your help. Javascript file is at.
http://agapeyoga.com/common/lib_main.js
sample HTML code:
<a href="../" onMouseOver="imgHov('home');"
onMouseOut="simNav('home');">
<img src="javascript:simNav('home');" name="home" border="0" width="66"
height="20"></a>
The simNav function:
function simNav(n_name) {
var url =this.location.href
var
root_name =url.substring(url.indexOf(n_name),eval(url.indexO f(n_name)+
n_name.length))
if (this.document) {
if (n_name == root_name || (n_name == "home" && homepage ==
"y")) {
document[n_name].src = eval(n_name + "On" + ".src");
} else {
document[n_name].src = eval(n_name + "Off" + ".src");
}
}
return (document[n_name].src);
}
Sample image source loading for javascript:
homeOn = new Image(); // Active images
homeOn.src = "/images/n_home_on.gif";
Very grateful for your help!