We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

skywalker on 05/09/08


Tagged

url javascript js redirect link


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

inamorix


Javascript URL Redirection...


Published in: JavaScript 


It redirects the url with JS.

  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 

You need to login to post a comment.