gib65
06-14-2010, 06:10 PM
Please open Firefox and go to http://www.surrealsource.com.
You might have to wait a few minutes for the page to fully download, but once it does, try clicking on any thumb on the left. Nothing happens, right? In any other browser, the user is able to click on a thumb and have an enlarged view of that image appear in the main viewing area. But not in Firefox.
Why?
Here's some of my code:
I'm using a motion gallery, the source of which can be found at:
http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm
Here's an example entry in the gallery:
<tr><td><a href="#nogo" onclick="changePic(MAGIC_SHOW);return false;"><img src="thumbs/magic_show.jpg" border=1></a><br>Magic Show</td></tr>
Here's my code for changePic:
function changePic(num) {
textdiv.style.display = "none"; // visible on first page load
picdiv.style.display = "inline"; // where main picture is displayed
infodiv.style.display = "inline"; // info on current picture (date, title, comments) to right of picdiv
nextlink.innerHTML = "NEWER >>";
prevlink.innerHTML = "<< OLDER";
mainpic.src="mainpics/"+files[num];
title.innerHTML = titles[num];
date.innerHTML = dates[num];
comment_body.innerHTML = comments[num];
cur_pic=num;
if (cur_pic == last_pic) {
nextlink.style.display = "none";
}
else {
nextlink.style.display = "inline";
}
if (cur_pic == first_pic) {
prevlink.style.display = "none";
}
else {
prevlink.style.display = "inline";
}
...
}
Can anyone see the problem? Is it in my changePic function? Is it the "#nogo" value being assigned to the href attribute? What is it?
You might have to wait a few minutes for the page to fully download, but once it does, try clicking on any thumb on the left. Nothing happens, right? In any other browser, the user is able to click on a thumb and have an enlarged view of that image appear in the main viewing area. But not in Firefox.
Why?
Here's some of my code:
I'm using a motion gallery, the source of which can be found at:
http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm
Here's an example entry in the gallery:
<tr><td><a href="#nogo" onclick="changePic(MAGIC_SHOW);return false;"><img src="thumbs/magic_show.jpg" border=1></a><br>Magic Show</td></tr>
Here's my code for changePic:
function changePic(num) {
textdiv.style.display = "none"; // visible on first page load
picdiv.style.display = "inline"; // where main picture is displayed
infodiv.style.display = "inline"; // info on current picture (date, title, comments) to right of picdiv
nextlink.innerHTML = "NEWER >>";
prevlink.innerHTML = "<< OLDER";
mainpic.src="mainpics/"+files[num];
title.innerHTML = titles[num];
date.innerHTML = dates[num];
comment_body.innerHTML = comments[num];
cur_pic=num;
if (cur_pic == last_pic) {
nextlink.style.display = "none";
}
else {
nextlink.style.display = "inline";
}
if (cur_pic == first_pic) {
prevlink.style.display = "none";
}
else {
prevlink.style.display = "inline";
}
...
}
Can anyone see the problem? Is it in my changePic function? Is it the "#nogo" value being assigned to the href attribute? What is it?