HenryGlazt

redirect.php

Nov 6th, 2014
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.15 KB | None | 0 0
  1. <?cok
  2. #!+++++++++++++++++++++++++++++
  3. #! Script redirect link
  4. #! Author : HenryGlazt
  5. #! Thanks To my Lovely Shinta Naomi :*
  6. #!+++++++++++++++++++++++++++++
  7. ?>
  8.  
  9. <script type="text/JavaScript">
  10. <!--
  11. function eventualRedirect(redirectTo, timeoutPeriod) {
  12. setTimeout("location.href = redirectTo;",timeoutPeriod);
  13. }
  14. // -->
  15. </script>
  16. <script type="text/JavaScript">
  17. <!--
  18. setTimeout("location.href = 'http://www.henryglazt.cf';",5000); // Link yang dituju misalnya www.sukatoro.com
  19. -->
  20. </script>
  21. <br />
  22. <br />
  23. <br />
  24. <br />
  25. <center>
  26. <h4>
  27. Anda akan dialihkan</h4>
  28. <h4>
  29. Dalam <script type="text/javascript">
  30. // KONFIGURASI
  31. var menit = 1; // Lamanya hitung mundur (dalam menit)
  32. var detik = 5; // Detik standar (jangan diubah kecuali Anda tahu yang Anda lakukan)
  33. var penghitung_detik = detik; // Set variabel detik yang lain untuk dimanipulasi
  34. // HITUNG MUNDUR
  35. penghitung_detik = 0;
  36. function hitung_mundur() {
  37. penghitung_detik--; // Setiap siklus 1 detik mengurangi nilainya 1 poin
  38. if (penghitung_detik == -1) { // Deteksi detik ketika nilainya "0"
  39. menit--; // Setiap siklus 1 menit mengurangi nilainya 1 poin
  40. penghitung_detik = detik; // Me-reset detik untuk memulai hitung mundur menit yang baru
  41. if (menit <= -1) { // Hitung mundur selesai
  42. menit = 0;penghitung_detik = 0; // Menset menit dan detik ke "0"
  43. clearTimeout(penghitung); // Stop hitung mundur
  44. }
  45. }
  46. if (document.getElementById) {
  47. document.getElementById("hitung_mundur_tampil").innerHTML=penghitung_detik; // Memasukkan nilai variabel menit dan detik untuk ditampilkan
  48. }
  49. penghitung=setTimeout("hitung_mundur()", 1000); // Set siklus penghitungan mundur (standar: 1 detik)
  50. }
  51. // INISIALISASI
  52. if (document.all||document.getElementById)
  53. document.write(' <b id="hitung_mundur_tampil">'+penghitung_detik+' </b>'); // Format tampilan hitung mundur di antarmuka
  54. hitung_mundur();
  55. </script> Detik </h4>
  56. <br /><br />
  57. <div style="background-color: #a5ed3f; cursor: pointer; padding: 10px; width: 200px;">
  58. Anda akan dialihkan ke <br />
  59. www.henryglazt.cf</div>
  60. <br /><br /><div style="background-color: #dee3a6; cursor: pointer; padding: 5px; width: 300px;">
  61. Terimakasih Telah menunggu.</div>
  62. </center>
Advertisement
Add Comment
Please, Sign In to add comment