catngo
05-17-03, 12:26 AM
okay, to break out of frame, just use:
<a target=_top href=.........>
to redirect: this is my code
<script>
<!--
//change below target URL to your own
var targetURL="http://www.vinaclub.net"
//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>
and this is the working model: here (http://www.atomzone.net)
now, the PROBLEM
i want it to redirect but also break out of frame. anyone know how to combine this 2 together?
<a target=_top href=.........>
to redirect: this is my code
<script>
<!--
//change below target URL to your own
var targetURL="http://www.vinaclub.net"
//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>
and this is the working model: here (http://www.atomzone.net)
now, the PROBLEM
i want it to redirect but also break out of frame. anyone know how to combine this 2 together?