Results 1 to 4 of 4

Thread: Swiss Army image slideshow background

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Swiss Army image slideshow background

    1) Script Title: Swiss Army image slideshow

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

    3) Describe problem: I'm using the script to display images of varying sizes with automatic fade effect and control buttons (the first example). I know that the maximum length and width of the images can be specified with a fading background colour, but is there a way I can use my webpage background for the slideshow so that my images just appear on a consistent, unbroken background? Or is this not possible? Any advice gratefully received, thanks!

  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

    It's possible but can be a little tricky. The slides need some background (solid color or image) otherwise the result - particularly with various different sized images - will not be pretty. That said, a css style selector for where that background is applied would be (for the first slide show on a page, increment 0 for each subsequent show, if any):

    Code:
    #master0 div
    so you could put this in your stylsheet:

    Code:
    #master0 div {
    background: url(whatever.gif)!important;
    }
    and it will override what the script is placing as the background on these divisions which hold the slides. However, even if you use the same image as is used for the background of the page, chances are it won't line up with the page's background. If your page's background image is at all complex, this will probably look odd. But you can use the css background's property positioning values to get it to line up, assuming your layout is fixed enough to allow for this.

    For more info on how that works see:

    http://www.blooberry.com/indexdot/cs...bg/bgposit.htm

    or your favorite css reference.
    Last edited by jscheuer1; 06-15-2012 at 07:38 AM. Reason: fix link to css reference
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    suzyq (10-07-2009)

  4. #3
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile

    Thanks very much - I'll experiment a bit more!

  5. #4
    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

    You're welcome. If you get close, or even far to what you are shooting for and run into problems, post a link to your best effort here in this thread, and I'll see what can be done.

    However, as I mentioned, if your layout is too fluid (fluid layouts are generally a good thing - so don't feel bad if it is), exactly lining up a complex background in the manner I described in my previous post may just not be possible. But some acceptable compromise probably can still be obtained.
    - John
    ________________________

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

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
  •