Results 1 to 3 of 3

Thread: Ultimate Fade-in Slideshow Features

  1. #1
    Join Date
    Jan 2011
    Location
    San Francisco Bay Area
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-in Slideshow Features

    1) Script Title: Ultimate Fade-in Slideshow (2.4)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem: The current javascript places the image in the center of the space, has a background of black with the descriptive text in white. I would like the image to be aligned with the top (not center), the background to be white, with black text. Part of my intent is to make the images "taller" than necessary (with fill at the bottom) so the text doesn't overlap the image. I really can't see where this is defined in the code. I would love these parameters to be able to be set by myself (as the implementer). Is that possible?

    Alan

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    To top align the images relative to the container, try finding the below line inside the .js file:

    Code:
    $slideimage.css({marginTop: (imgdimensions[1]>0 && imgdimensions[1]<setting.dimensions[1])? setting.dimensions[1]/2-imgdimensions[1]/2 : 0})
    and change it to just:

    Code:
    $slideimage.css({marginTop: 0})
    To make the background white and text black, inside the .js file, first, try doing a search and replace to swap all instances of the word "black" with "white". Then, to make the text black, change the code in red below:

    Code:
    .eq(1).css({color:'white'}).html(setting.closebutton + setting.longestdesc).end() //"descpanelfg" div
    to "black" instead.
    DD Admin

  3. #3
    Join Date
    Jan 2011
    Location
    San Francisco Bay Area
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you. Those changes worked perfectly. I wonder if they should be set as variables at the top of the code so that users could set alignment, background color and text color to fit the design of their site. Just a thought.

    Thanks again for the input.
    Alan

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •