PDA

View Full Version : Ultimate Fade-in slideshow (v2.4) Left Align Images?



thekernel
10-01-2010, 09:42 PM
1) Script Title: Ultimate Fade-in slideshow (v2.4)

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

3) Describe problem: Hi, this script is working beautifully, but I am using images that are different sizes and I need to know if it's possible to align the slideshow images to the left instead of centered, and if so how?

Thanks,
Erin

thekernel
10-01-2010, 11:52 PM
Firgured it out if anyone is curious:

in fadeslideshow.js:

var imgdimensions=[$slideimage.width(), $slideimage.height()] //center image
$slideimage.css({marginLeft: 0}) <<----just make this value 0
$slideimage.css({marginTop: (imgdimensions[1]>0 && imgdimensions[1]<setting.dimensions[1])? setting.dimensions[1]/2-imgdimensions[1]/2 : 0})

:)