View Full Version : Ultimate fade-in slideshow Text box width

07-07-2011, 09:40 PM
1) Script Title: Ultimate Fade-in slideshow (v2.4)

2) Script URL: http://www.dynamicdrive.com/dynamici...nslideshow.htm (http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm)

3) Describe problem:

I am using the ultimate fade-in slideshow for a while now.

I am wondering if it is possible to have the textbox adapt its width to the width of the image that is showing on the moment.
I am working with images of diferent sizes but the textbox always stays the size of the wrapperdiv.

I hope someone can help me.

Url to the page: http://www.fotonewvision.nl/portfolio_zakelijk.php



07-08-2011, 05:55 AM
The way you have it there I'm assuming you could also do without the close and restore images showing up. I hope so because figuring out what to do with them would be a pain. I've disabled them by setting their width and height to 0.

Working from your already modified version I added in code to get the description centered and of the same size as the image (right click and 'save as'):


Use it in place of the current fadeslideshow.js file.

Added Later:

For an interesting variation where the description follows the image vertically as well, try:


Also, with either of these, you may want to increase the height dimension by 10:

<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "slideshow",
dimensions: [450, 510],
imagearray: [["../images/Konings-Meeuwissen_NEC_YvonneVeens.jpg","","","Konings-Meeuwissen.nl"], ["../images/Yvonneveens-Konings-meeuwissen.jpg","","","Konings-Meeuwissen.nl"], ["../images/YvonneVeens_konings-meeuwissen.jpg","","","Konings-Meeuwissen.nl"]
displaymode: {type:'manual', pause:2500, cycles:0, wraparound:false},
persist: false,
fadeduration: 500,
descreveal: "always",
togglerid: "slideshowtoggler"

07-08-2011, 04:03 PM
Hello John,

This is exactly what I am looking for !!
Many thanks for your quick response.