Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Ultimate Fade-in slideshow "loading.gif" problem

  1. #1
    Join Date
    Jan 2010
    Posts
    17
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-in slideshow "loading.gif" problem

    Hi,

    I'm updating my website and added the Ultimate Fade-in slideshow. I really like it and it works great so far.

    The only thing that I can't get to work is the "loading.gif" image in the fadeslides.js file. Here is the part I'm talking about:

    Code:
    var fadeSlideShow_descpanel={
    	controls: [['x.png',7,7], ['restore.png',10,11], ['loading.gif',54,55]], //full URL and dimensions of close, restore, and loading images
    	fontStyle: 'normal 11px Verdana', //font style for text descriptions
    	slidespeed: 200 //speed of description panel animation (in millisec)
    }
    I downloaded the loading.gif and placed it in the same folder as the fadeslide.js file, but for some reason the image never gets displayed as the larger slides are being loaded. The result is an empty space for quite a while, as my slideshow is fairly large.

    Anybody else run into this? How can I get this to work properly?

    Thanks a lot for your help,

    simon
    Last edited by seemoo; 01-26-2010 at 09:08 PM.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Hmm =/ Is the restore.png and x.png working okay?
    Jeremy | jfein.net

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

    seemoo (01-25-2010)

  4. #3
    Join Date
    Jan 2010
    Posts
    17
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Default

    Hi Nile,

    The image caption slider that you helped me out with last week, works great. I'm really happy with how it looks now. Thanks again!

    I don't know if these two images work, as I don't use them in this slideshow... I'm using slideshow 3.

    Could it be that the image doesn't get loaded until the large files get loaded?

  5. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Hmm.. I dont know. Mind providing me with a link to your page?
    (Glad to help with the image caption problem)
    Jeremy | jfein.net

  6. The Following User Says Thank You to Nile For This Useful Post:

    seemoo (01-25-2010)

  7. #5
    Join Date
    Jan 2010
    Posts
    17
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Default

    http://www.simonchristen.com/index.php

    This is the main page and when the images are loading for the slideshow, it would be great to have a this gif (http://www.simonchristen.com/templat...mg/shutter.gif) spinning away until the first image is ready... :-)

    thanks for looking into it.

  8. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I don't see a blank space...?

    Try changing:
    Code:
    <div id="fadeshow1"></div>
    To:
    Code:
    <div id="fadeshow1"><img src="http://www.simonchristen.com/templates/darkmatter/img/shutter.gif" /></div>
    Jeremy | jfein.net

  9. The Following User Says Thank You to Nile For This Useful Post:

    seemoo (01-25-2010)

  10. #7
    Join Date
    Jan 2010
    Posts
    17
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Default

    Well not blank space...

    It takes quite a few seconds before the first image of the slideshow is loaded... To bridge that gap I would like the shutter.gif image to be displayed where the first slide would go until that slide is loaded.

    I assume this is the purpose of the original loading.gif image in the code that I posted in my first post...

    But it seems it doesn't want to get displayed...

    It's no big deal... was just wondering if anybody ran into the same thing....


    I tried your code, but it doesn't seem to display the image either...?

  11. #8
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Smile

    I was also going through the same problem and find out a hack.
    following changes was done,
    in file "fadeslideshow.js"
    line 35-40 range
    Code:
        preloadimages[i]=new Image()
        preloadimages[i].src=fadeSlideShow_descpanel.controls[2][0]
        for (var i=0; i<setting.imagearray.length; i++){ //preload images
    Reason: load the loading image faster

    line 80-90 range
    Code:
            if ($curimage.get(0).complete){ //accounf for IE not firing image.onload
                //$loadingimg.hide()
                slideshow.paginateinit($)
                slideshow.showslide(setting.curimage)
            }
            else{ //initialize slideshow when first image has fully loaded
                //$loadingimg.hide()
                slideshow.paginateinit($)
                $curimage.bind('load', function(){slideshow.showslide(setting.curimage)})
            }
    Reason: seems like loading hide soon as created, so I stopped.

    I'm not a java guru so there may be side effects. please check.
    I checked with IE6, IE7 Safari3, Chrome 3, FF 3.5.7 and looks ok to me

  12. The Following User Says Thank You to udeshjr For This Useful Post:

    seemoo (01-25-2010)

  13. #9
    Join Date
    Jan 2010
    Posts
    17
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Default

    Thanks udeshir!

    That seems to do the trick! Tested it on Firefox Unix and it seems to work fine.

    thanks again,

    simon

  14. #10
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    It seems your topic is solved... Please set the status to resolved.. To do this:
    Go to your first post ->
    Edit your first post ->
    Click "Go Advanced" ->
    Then in the drop down next to the title, select "RESOLVED"
    Jeremy | jfein.net

  15. The Following User Says Thank You to Nile For This Useful Post:

    seemoo (01-26-2010)

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
  •