Delay on image loading

Discussion in 'HTML & Website Design' started by TerryDS, Feb 22, 2010.

  1. #1
    Hi all

    I'm new here . . . so go easy, as my technical knowledge may not stretch as far as others.

    My query is this: I have a sales video page that runs for approx 20 minutes. I would really like my shopping cart/paypal download button to appear towards the very end (approx 18 minutes onwards). BUT not as the page loads from the beginning.

    But how do I accomplish this. I've seen it elsewhere.

    Is there a script? Is it an Iframe, and if so what script do I embed in the iframe?

    Hope anyone can advise.
     
    TerryDS, Feb 22, 2010 IP
  2. sdnsoft

    sdnsoft Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #2
    You can use JavaScript and Timeout events

    <script type="text/javascript">
    <!--
    function timingex( ){
    setTimeout("alert(20 minutes later.');",20*60*1000); 
    //timeout you give in miliseconds this is why i made 20min * 60 seconds * 1000 ms
    }
    // -->
    </script>
    
    Code (markup):
    Instead of alert make simple GetById and change your button or div where your button is placed css property "Display" from "none" to "block".
     
    sdnsoft, Feb 22, 2010 IP
  3. FreeWebsites

    FreeWebsites Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, that should work for you.
     
    FreeWebsites, Feb 26, 2010 IP