Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Progress bar for preloaded images?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36593
    noahgelman
    Participant

    I have several images that are preloaded like:

    var Image1 = new Image();
    var Image2 = new Image();
    var Image3 = new Image();

    Image1.onload = function ...();
    Image2.onload = function ...();
    Image3.onload = function ...();

    Image1.src = url;
    Image2.src = url;
    Image3.src = url;

    Which is all fine and dandy and what not. But I would like to try and set up a progress bar for them while their loading and havent been able to get it to work. Any help would be appreciated.

    I tried doing a progress bar using the onload functions, but it was being weird with instantly running the function before it was actually loaded.

    #96614
    noahgelman
    Participant

    bump

    #96620
    SgtLegend
    Member
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.