1 Replies - 1554 Views - Last Post: 10 November 2009 - 09:15 AM

#1 ptamzz  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 04-March 09

Countdown Redirect

Posted 10 November 2009 - 08:34 AM

I want a countdown and then redirect script... can anyone help me where to find it???

It should say smthing lyk, "you'll be redirected in [secs] secs.."
Is This A Good Question/Topic? 0
  • +

Replies To: Countdown Redirect

#2 ptamzz  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 04-March 09

Re: Countdown Redirect

Posted 10 November 2009 - 09:15 AM

Ok, i gota code... forgt where i got it, but it's working anyway!! :)


<form name="redirect">
<div align="center">
	<div style="text-align: left; width: 650px;">
<b><p>The link you've been looking has been shifted to the main domain at http://www.pebam.info.</p></b>
	<div>
<p>You will be redirected to the the main domain in  &nbsp;&nbsp;
  <input type="text" size="2" name="redirect2" style="border-width: 0; font-weight: bold; font-size: 15px">seconds

		
		</p>
	</div>
	</div>
</div>
<script>

<!--


//change below target URL to your own
var targetURL="http://www.pebam.info"
//change the second to start counting down from
var countdownfrom=10


var currentsecond=document.redirect.redirect2.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.redirect2.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
}

countredirect()
//-->
</script>

Was This Post Helpful? 1

Page 1 of 1