PDA

View Full Version : Ultimate Fade-in slideshow (v1.51) assistance(bg color)



schwim
03-13-2009, 05:26 PM
1) Script Title: Ultimate Fade-in slideshow (v1.51)

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

3) Describe problem: I'm wondering if there's a way to have the background be transparent. I'm dealing with a rotating slogan that requires a transparent background. I'm having to use this script (http://www.dynamicdrive.com/dynamicindex14/image4.htm), which doesn't apply the fade in anything but IE.

Can anyone help me get the script to use a transparent background instead of a color?

thanks,
json

jscheuer1
03-14-2009, 01:43 AM
From the demo page:



<script type="text/javascript">

/***********************************************
* Ultimate Fade-In Slideshow (v1.51): Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax

var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[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"

////NO need to edit beyond here/////////////

You can change that to:


var fadebgcolor="transparent"

But, that may or may not get you what you want. It will make the background transparent though, which is what you asked.

If you want more help, please explain in greater detail, and:

Please post a link to the page on your site that contains the problematic code so we can check it out.

Just as a side note, most people asking this question actually want the background to be the background that would be seen if a normal element were there that had a transparent background. Depending upon what that would actually look like in a given case, there may be a way to work it out.