Log in

View Full Version : Background not clearing in slideshow



Fozzie
07-30-2011, 11:27 AM
1) Script Title: Translucent slideshow Script

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

3) Describe problem:

The Description says:
"Images within the slideshow can be of varying dimensions- the script will center each image accordingly within the display area".

This is true, BUT when you have a smaller picture slide in over a larger one, the end-result is that they are stacked up with the previous picture still showing round the outside. Surely it ought to clear the 'unused' display area at some stage?

I have tried it on all main browsers with the same result and with a completely blank html page only containing your code/js etc.

Any ideas, please, as it is otherwise excellent.

jscheuer1
07-30-2011, 01:42 PM
I'm not certain that would qualify as a bug. But if not, it's very close. First thing I'd try is giving the slide class a background color. Put this in your stylesheet:


.slide {background-color: #fff;}

If you want more help, please give us a link to the:


a completely blank html page only containing your code/js etc.

you mention that shows the problem.

Fozzie
07-30-2011, 06:20 PM
Brilliant. Problem fixed. Thank you, both for the fix and the prompt reply. :)

As you say, not really a bug. More an 'undocumented feature' as it turns out! I guess I should have studied the code more thoroughly first and I might have found it (or possibly not!)

Maybe it could be included as another style declaration in the sample code? You never know, but somebody might want another color.

Thanks once again.