bszopi
06-06-2011, 06:20 PM
1) Script Title: Ultimate Fade-In Slideshow v2.4
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem: can't load multiple slideshows on different ASP pages
I have a generic ASP page as a template, which then loads different pages into the template. I am able to run 1 instance of the slideshow on any page, but when I try to run a second instance on a different page, it doesn't work. If the slideshows are both on the same page, then they both work. Using Firebug, I have found the following error on the 2nd page from within the javascript:
$curimage.get(0) is undefined
[Break On This Error] if ($curimage.get(0).complete){ //accounf for IE not firing image.onload
Since the ASP page is just a template, both instances are loaded into the same HEAD. On the second page, if I rename the DIV to the ID of the first slideshow, it works just fine.
Any thoughts on how I can get this to work? I'm typically a PHP coder, but have been asked to help out on this project, so I am learning ASP as I go. Thanks!
Here is a link to the page if needed for troubleshooting:
www.bgark.com/testdefault.asp
Slideshow 1 is on the Home page, and Slideshow 2 is on the Projects page.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem: can't load multiple slideshows on different ASP pages
I have a generic ASP page as a template, which then loads different pages into the template. I am able to run 1 instance of the slideshow on any page, but when I try to run a second instance on a different page, it doesn't work. If the slideshows are both on the same page, then they both work. Using Firebug, I have found the following error on the 2nd page from within the javascript:
$curimage.get(0) is undefined
[Break On This Error] if ($curimage.get(0).complete){ //accounf for IE not firing image.onload
Since the ASP page is just a template, both instances are loaded into the same HEAD. On the second page, if I rename the DIV to the ID of the first slideshow, it works just fine.
Any thoughts on how I can get this to work? I'm typically a PHP coder, but have been asked to help out on this project, so I am learning ASP as I go. Thanks!
Here is a link to the page if needed for troubleshooting:
www.bgark.com/testdefault.asp
Slideshow 1 is on the Home page, and Slideshow 2 is on the Projects page.