NameSilo

Countdown timer

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

SiKing

Registered MemberEstablished Member
Impact
6
Hey. I'm looking for a countdown timer which does the following:

- Counts down from 20 seconds.
- When it's done, shows a link.
- Count down restarts when link is clicked.

Figure it will have to be JavaScript but oh well. Thanks
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Code:
<div id="dl">
If you're seeing this message, you need to enable JavaScript.
</div>
<script language="Javascript">
xtimer=20;
function countdown() 
{
 if ((0 <= 100) || (0 > 0))
 {
  xtimer--;
  if(xtimer == 0)
  {
   document.getElementById("dl").innerHTML = '<a onclick="xtimer=20;countdown();" href="http://www.google.com">Your Link</a>';
  }
  if(xtimer > 0)
  {
   document.getElementById("dl").innerHTML = 'Please wait <b>'+xtimer+'</b> seconds...';
   setTimeout('countdown()',1000);
  }
 }
}
countdown();
</script>
 
0
Close
Awesome, thanks Jim
 
0
Close
Hmm dosnt seem to work for me. i just get a blank page.
 
0
Close
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back