starlameris
06-29-2005, 05:27 PM
...And I haven't got the slightest idea how to fix it. The code works on all the other browsers I've tested it on, but when I try it in Opera, the forward and back buttons simply don't respond.
Here's the code:
var manualPictures = new Array();
function NextImageSlide(pictureName,imageFiles)
{
// Ensure picture list primed.
if (manualPictures[pictureName] == null) {
manualPictures[pictureName] = imageFiles;
} else {
imageFiles = manualPictures[pictureName];
}
var imageSeparator = imageFiles.indexOf(";");
var nextImage = imageFiles.substring(0,imageSeparator);
{
document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = nextImage;
{
document.getElementById(pictureName).filters.blendTrans.Play();
}
manualPictures[pictureName] =
imageFiles.substring(imageSeparator+1,imageFiles.length)
+ ';' + nextImage;
}
//End Slideshow
And here's what I get when I look at the Opera JavaScript console:
Bloch Fine Custom Woodworks
file://localhost/C:/Documents%20and%20Settings/SMaulding/Desktop/site/actual/products/kitchens.html
Event thread: click
Error:
name: TypeError
message: Statement on line 16: Could not convert undefined or null to object
Backtrace:
Line 16 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/SMaulding/Desktop/site/actual/products/kitchens.html
(document.getElementById(pictureName)).filters.blendTrans.Apply();
Line 1 of script
NextImageSlide("rollover", "graphics/kitchens/kitchen2.jpg;graphics/kitchens/kitchen1.jpg");
At unknown location
[statement source code not available]
Any thoughts?
Here's the code:
var manualPictures = new Array();
function NextImageSlide(pictureName,imageFiles)
{
// Ensure picture list primed.
if (manualPictures[pictureName] == null) {
manualPictures[pictureName] = imageFiles;
} else {
imageFiles = manualPictures[pictureName];
}
var imageSeparator = imageFiles.indexOf(";");
var nextImage = imageFiles.substring(0,imageSeparator);
{
document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = nextImage;
{
document.getElementById(pictureName).filters.blendTrans.Play();
}
manualPictures[pictureName] =
imageFiles.substring(imageSeparator+1,imageFiles.length)
+ ';' + nextImage;
}
//End Slideshow
And here's what I get when I look at the Opera JavaScript console:
Bloch Fine Custom Woodworks
file://localhost/C:/Documents%20and%20Settings/SMaulding/Desktop/site/actual/products/kitchens.html
Event thread: click
Error:
name: TypeError
message: Statement on line 16: Could not convert undefined or null to object
Backtrace:
Line 16 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/SMaulding/Desktop/site/actual/products/kitchens.html
(document.getElementById(pictureName)).filters.blendTrans.Apply();
Line 1 of script
NextImageSlide("rollover", "graphics/kitchens/kitchen2.jpg;graphics/kitchens/kitchen1.jpg");
At unknown location
[statement source code not available]
Any thoughts?