Results 1 to 5 of 5

Thread: Fadeinslideshow.js

  1. #1
    Join Date
    Oct 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Fadeinslideshow.js

    1) Script Title: Fadeinslideshow

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

    3) Describe problem: I know this problem is on my site, because I've got some pretty big images. But is there a way to incrementally preload the images in the slideshow so that my page doesn't take as long to post?

    link to my page: http://www.cjgengineers.com

  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

    The script already does an incremental preload. To speed things up further, optimize your images, all of them on the page including rollovers, not just the ones in the slideshow.
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2010
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Is there a way of pre loading the first slide.

    In the past I have gone into the js script and line 53 allows you to set hex value of background. Can this be set as an image rather than a colour.

    I have a subtle image as part of a background and it looks a bit clumsy while waiting for the first slide to load.

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

    Quote Originally Posted by mattmac View Post
    Is there a way of pre loading the first slide.

    In the past I have gone into the js script and line 53 allows you to set hex value of background. Can this be set as an image rather than a colour.

    I have a subtle image as part of a background and it looks a bit clumsy while waiting for the first slide to load.
    No need to edit the script. And you shouldn't because if you have two pages that use it and want different backgrounds, you need two scripts.

    Anyways - say your wrapperid is fadeshow1. Put this or something like it in the head of the page (or put its rules in an existing stylesheet):

    Code:
    <style type="text/css">
    #fadeshow1, #fadeshow1 .gallerylayer {
    	background: green url(myimage.jpg) !important;
    }
    </style>
    Substitute the wrapperid for fadeshow1, if different. The color and the image may be of your choosing. A path may be specified for the image. If relative, the path will be relative to where this rule is. Like if it's on the page, relative to the page. If it's in an external stylesheet, relative to that stylesheet.

    If doing just color, use like:

    Code:
    <style type="text/css">
    #fadeshow1, #fadeshow1 .gallerylayer {
    	background-color: green!important;
    }
    </style>
    Use whatever color (color name, hex code, etc.) you like.

    In both examples the highlighted !important keyword is required to override the scripted styles.
    - John
    ________________________

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

  5. #5
    Join Date
    Jan 2010
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John

    Thanks for the help. This is something I have always wanted to solve.

    It makes a big difference and I will be changing all my sites to work this way.

    Thanks again

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
  •