Nothing is really 'broken'. That is exactly what I would expect to happen. What you can to do is change the script so that instead of a background color for the fading divisions, you have a background image. Even though it would be the background to two different fading divisions, it would appear as one image and, if solid, would not allow the other gif images to show through.
To do this, change the two instances of:
Code:
background-color:'+fadebgcolor+'
in the script to:
Code:
background:'+fadebgcolor+'
Once you have done this, you can set the background image for the fading divisions here, like so:
Code:
. . .es2[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages2[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages2[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
var fadebgcolor="white url(some.jpg)"
////NO need to edit be . . .
It is a good idea to still specify a color as shown, but it doesn't have to be white and should probably match the page's background color. You can also use any other of the valid background style property's values in this string that you like.
Note: I cannot be certain if this will completely solve your problem as you will not be able to see anything behind the background image and it will be all that can be seen behind any given gif in the show, but it is about the best that can be done with this script.
Bookmarks