Results 1 to 4 of 4

Thread: Slideshow fade issues using transparent pngs

  1. #1
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Slideshow fade issues using transparent pngs

    1) Script Title: Ultimate Fade-in slideshow (v2.1)

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

    3) Describe problem: I am working on a website where I want to have quotes from founding fathers along with their image cycling right under the menu on each page. This slide show seemed to be the perfect solution. I want the quotes to be overlayed right over the top of the sites tiled background (looks like a concrete wall). This being the case I used png files and turned off the background color in the java script. On the first slide all appears to be working well but when the time comes for the second slide to appear it fades OVER THE TOP of the first slide, so with my png transparency it is as stacked up mess! Is there any way to adjust the code so that the opacity fades down on the current image at the same time that it is fading up on the new image so that it will be a true crossfade?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    With this script that can get tricky. You don't really need to edit the script though. Overriding styles may be used. Overriding style employs the:

    !important

    keyword.

    So let's say that your page's background image is myBricks.gif and the wrapperid for the slide show is fadeshow1:

    Code:
    <style type="text/css">
    #fadeshow1, #fadeshow1 .gallerylayer {
     background-image: url(myBricks.gif)!important;
     background-position: center!important;
    }
    </style>
    It is the highlighted property that is important in order to get it to line up with the page background image. You may specify a left and top coordinate, example:

    HTML Code:
    background-position: 10px 30px!important;
    If your layout is rigid enough, this will (with enough trial and error) work out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default New Question

    Thanks for the help. I'm going to give it a try. I may have an easier alternative though. I talked to my client and he says that he would actually prefer that one slide fade out completely (leaving just the background) and then the next slide fade in after a second delay or so. If it isn't too difficult to do this please let me know. Thanks so much for the help.

  4. #4
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I got the crossfade working! I just added this code to the foreground becomes background line: .animate({opacity:0}). This should have been in the original script so that it is a true crossfade!

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
  •