Javascript URL Redirection...


/ Published in: JavaScript
Save to your folder(s)

It redirects the url with JS.


Copy this code and paste it in your HTML
  1. <script>
  2. var limit="0:05"
  3. if (document.images){
  4. var parselimit=limit.split(":")
  5. parselimit=parselimit[0]*60+parselimit[1]*1
  6. }
  7. function begintimer(){
  8. if (!document.images)
  9. return
  10. if (parselimit==1)
  11. window.location="http://<?php echo $kayit["link"]; ?>"
  12. else{
  13. parselimit-=1
  14. curmin=Math.floor(parselimit/60)
  15. cursec=parselimit%60
  16. if (curmin!=0)
  17. curtime=curmin+" minutes and "+cursec+" Saniye Bekleyiniz.."
  18. else
  19. curtime=cursec+" Saniye Bekleyiniz.."
  20. window.status=curtime
  21. setTimeout("begintimer()",1000)
  22. }
  23. }
  24. //-->
  25. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.