Buying $5 for a quick problem fix

Discussion in 'Programming' started by jasonsc, May 8, 2014.

  1. #1
    I want to display loading.gif on a webpage for 1 second and than change it to another .gif that will be displayed on page permanently.
    While loading.gif is displayed, I don't actually want to pre-load the main.gif, I want it to start loading for the user when it is actually displayed.

    $5 paypal to the one that gives me the code.
     
    jasonsc, May 8, 2014 IP
  2. Fracisc

    Fracisc Well-Known Member

    Messages:
    3,670
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    195
    As Seller:
    100% - 1
    As Buyer:
    50.0% - 1
    #2
    I guess you could create a gif. You can add a layer for a second, with the loading image, and then show the image itself and stop there.
     
    Fracisc, May 8, 2014 IP
  3. jasonsc

    jasonsc Well-Known Member

    Messages:
    1,696
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    165
    As Seller:
    100% - 1
    As Buyer:
    100% - 0
    #3
    No, the second gif must loop
     
    jasonsc, May 8, 2014 IP
  4. HowDoYou

    HowDoYou Well-Known Member

    Messages:
    443
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Done. here you go:
    http://jsfiddle.net/n7MPT/

    change window.setTimeout(show_popup, 3000);
    to window.setTimeout(show_popup, 1000);
    for 1 seconds, the number is in milliseconds.

    Paypal is ShaneShuford [at] Gmail.com
     
    HowDoYou, May 8, 2014 IP
  5. HowDoYou

    HowDoYou Well-Known Member

    Messages:
    443
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    HowDoYou, May 8, 2014 IP
  6. jasonsc

    jasonsc Well-Known Member

    Messages:
    1,696
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    165
    As Seller:
    100% - 1
    As Buyer:
    100% - 0
    #6
    Looks good. Let me try to integrate!
     
    jasonsc, May 8, 2014 IP
  7. jasonsc

    jasonsc Well-Known Member

    Messages:
    1,696
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    165
    As Seller:
    100% - 1
    As Buyer:
    100% - 0
    #7
    Solved! Thread closed.
     
    jasonsc, May 8, 2014 IP