View Full Version : Help with aligning Ultimate Fade script

03-03-2009, 04:41 AM
1) Script Title: Ultimate Fade Script

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

3) Describe problem: Hey Guys, I put this script on my page and it works great, but I'm having some alignment issues. If you go my page you will see (www.raceoptics.net) the pictures fading below my logo/header, when I want them next to the logo/header on the right. I tried playing with my css to correct the problem, but no good. Please help me align them properly. Thank you.

03-03-2009, 04:57 AM
You may use floats or a table. Looking at your markup, a table would be easiest. The thing is, the slideshow is a division with two nested divisions inside it, all created by the script. A division will cause a line break, unless it is contained in a floated division or in a table cell, ex:

<div align="rotate"><table>
<td><img src="images/images/images/header_02.gif" width="384" height="213" /><img src="images/images/images/video_03.jpg" width="249" height="212" /></td>
<td><script type="text/javascript">//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 407, 213, 0, 3000, 1, "R")</script></td>

BTW, I don't believe there is an attribute "rotate", and your markup is fairly non-standard, but seems to work. Also, you are missing MM_preloadImages and its accompanying functions for your image swaps. This results in javascript errors for the page.

03-03-2009, 05:20 AM
Thanks jscheuer1,
That table made it align correctly in IE, but firefox doesn't seem to align them correctly. Can you take a look and tell me what i need to make it align correctly in firefox?
That "rotate" attribute was a mistake I was making changes to the div.

thanks again.

03-03-2009, 05:47 AM
never mind I got it. Thanks for your help.