Results 1 to 2 of 2

Thread: Delay whilst Simple Controls Gallery initialises

  1. #1
    Join Date
    Feb 2011
    Posts
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Delay whilst Simple Controls Gallery initialises

    1) Script Title: Simple Controls Gallery v1.3

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

    3) Describe problem: I'm using the Simple Controls Gallery on my website and it is sometimes taking around 10 seconds for the gallery to initialise, I'm presuming whilst the images load. There are currently 52 images, all optimised for web via Photoshop. I have had to disable the autoplay as the first two or three images were half displaying. is there a way of setting a delay, preferably with user notification such as a status bar, whilst the gallery initialises?

    Thanks, Lol

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

    Default

    Try the below modified .js file, which should load the slideshow only when all the images have preloaded. It does utilize features found in jQuery 1.5x, so instead of the default:

    Code:
    <script type="text/javascript" src="jquery-1.2.6.pack.js"></script>
    reference in the HEAD section of your page, you'll need to replace that with:
    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
    If the modified code works, then we can go on to the next step of adding some sort of preload indicator.
    DD Admin

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
  •