Does anyone know where to get the countdown timer script that clickbank vendors use?

Discussion in 'ClickBank' started by dimmoneycash, Dec 10, 2009.

  1. #1
    Hi all,

    I know that this may not be the right section for scripts, but does anyone know where I could get this script? I just thought that some vendors around here may use this type of script.

    I am in the process of adding a discount page on my CB website, when a potential customer exits, it loads. But what I need now is, is a countdown timer that resets and starts again, if you know what I mean. Say it's a Thursday and the offer expires in 24 hours, but then I want it to reset on Friday and the 24 hour expiration date to start again and so forth.

    Thanks,
    Dim.
     
    dimmoneycash, Dec 10, 2009 IP
  2. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #2
    Any programmer can build one easily for you.
     
    javaongsan, Dec 10, 2009 IP
  3. Swerd

    Swerd Active Member

    Messages:
    1,657
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    90
    #3
    in head
    <script type="text/javascript">
    window.onload = function() {
    /* set your parameters(
    number to countdown from, 
    pause between counts in milliseconds, 
    function to execute when finished
    ) 
    */
    startCountDown(1590, 1000, myFunction);
    }
    
    function startCountDown(i, p, f) {
    // store parameters
    var pause = p;
    var fn = f;
    // make reference to div
    var countDownObj = document.getElementById("countDown");
    if (countDownObj == null) {
    // error
    alert("div not found, check your id");
    // bail
    return;
    }
    countDownObj.count = function(i) {
    // write out count
    countDownObj.innerHTML = i;
    if (i == 0) {
    // execute function
    fn();
    // stop
    return;
    }
    setTimeout(function() {
    // repeat
    countDownObj.count(i - 1);
    },
    pause
    );
    }
    // set it going
    countDownObj.count(i);
    }
    
    function myFunction() {
    alert("You Snooze You Lose");
    }
    </script>
    
    Code (markup):
    in body
    <div id="countDown"></div>
    Code (markup):
    Cheers,

    Drew
     
    Swerd, Dec 10, 2009 IP
  4. dimmoneycash

    dimmoneycash Active Member

    Messages:
    243
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Drew,

    Thank you so much!!!! :D

    Dim.
     
    dimmoneycash, Dec 10, 2009 IP
  5. jaykou

    jaykou Active Member

    Messages:
    101
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    Hi,

    Noticed the name on sales page is Rob Sheffield and on about page it's Ron.

    Please correct it.
     
    jaykou, Dec 10, 2009 IP
  6. dimmoneycash

    dimmoneycash Active Member

    Messages:
    243
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Good on you.

    Thanks!
     
    dimmoneycash, Dec 10, 2009 IP