dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: pre loading

  1. #1
    Junior Member
    Join Date
    Oct 2000
    Posts
    4
    I'm currently working on a site that includes several movies, on several different html pages. im having problems with the site loading slowly, and i was wondering if there was a way to preload the entire site at once. thus, once the initial wait is over, the site flows fairly seamlessly.

    here is the site at the point which i hate it now:
    http://www.xhorizonx.com/site/default.htm

    thanks,
    reid

  2. #2
    the traveler
    Join Date
    Aug 2000
    Location
    West Hartford, CT
    Posts
    638
    if it's that big, i would recommend serving it in chunks instead of one big whopper.. that way people will tend to stick around through that initial load.

  3. #3
    Junior Member
    Join Date
    Oct 2000
    Posts
    17
    I second aa's comments.

    however if you insist on a preloader this maybe the key:

    (insert in the <head> section of the html)


    <script>

    var myimages=new Array()
    function preloadimages(){
    for (i=0;i<preloadimages.arguments.length;i++){
    myimages[i]=new Image()
    myimages[i].src=preloadimages.arguments[i]
    }
    }


    //Enter path of images to be preloaded inside parenthesis. Extend list as desired.
    preloadimages("http://mydomain.com/firstimage.gif","http://mydomain.com/secondimage.gif","http://mydomain.com/thirdimage.gif")

    </script>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center