PDA

View Full Version : Ultimate Fade-in slideshow on Joomla - Error message on pages without slideshow



mocroft
12-17-2010, 12:20 AM
1) Script Title: Ultimate Fade-in slideshow (v2.0)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem: Installed this on my Joomla site which required me to put the code in the <head> section of my site template

This worked great, (LOVE this script!!) except now on the site pages where I don't have <div id="fadeshow1"></div> I get an error message.

Some pages can't fit the slideshow (photo gallery in particular)

If this is too confusing, you can see what I mean here:

pages with slideshow:

http://poshweddingflowers.com/index.php?option=com_content&task=view&id=5&Itemid=6

http://poshweddingflowers.com/index.php?option=com_content&task=view&id=16&Itemid=29

pages with error message:

http://poshweddingflowers.com/

http://poshweddingflowers.com/index.php?option=com_content&task=view&id=20

Is there a way to turn the error message off?

jscheuer1
12-17-2010, 06:23 AM
Find this section in the fadeslideshow.js script (around line #49) and comment out (highlighted and red) the alert line (highlighted) as shown :


if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
//alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
return
}

mocroft
12-17-2010, 05:02 PM
It works perfectly now. This is a really great script. Thank you so much!!