Contoh kasusnya kita mau pindah blog neh contohnya blog gw, dari www.make-a-simple.blogspot.com pindah ke www.kauleea.blogspot.com
nah ini nih codenya :
<div id="timer"></div>
<script type="text/javascript">
var time = 5;
function redirect()
{var timer=document.getElementById('timer');
timer.innerHTML = time + 'second';
time = time -1;
if(time==0)
{window.location = "http://kauleea.blogspot.com";}
else
{setTimeout(redirect(),1000);}
}
redirect();
</script>
biar bisa jalan (emang kaki,,,hehe) codenya : Hapus semua spasi dan enter.
Thanks to SyaBac
NB: gambar menyusul-susah posting gambar,,huhuhu
nah ini nih codenya :
<div id="timer"></div>
<script type="text/javascript">
var time = 5;
function redirect()
{var timer=document.getElementById('timer');
timer.innerHTML = time + 'second';
time = time -1;
if(time==0)
{window.location = "http://kauleea.blogspot.com";}
else
{setTimeout(redirect(),1000);}
}
redirect();
</script>
biar bisa jalan (emang kaki,,,hehe) codenya : Hapus semua spasi dan enter.
Thanks to SyaBac
NB: gambar menyusul-susah posting gambar,,huhuhu
Post a Comment