Need redirection (break out of frame) script!! [Archive] - SpeedGuide.net Broadband Community

View Full Version : Need redirection (break out of frame) script!!


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?

TonyT
05-17-03, 08:25 AM
var targetURL="http://68.66.9.31:8080"

catngo
05-17-03, 04:56 PM
okay, 68.66.9.31:8080 resolve to vinaclub.net so they're both the same. but still, it will not break out of frame.

ub3r_n00b
05-19-03, 12:59 AM
use
<meta http-equiv="refresh" content="2;url=http://whatever.com">

in the index.html...

-Preet

catngo
05-19-03, 01:53 AM
thx, that is the basic redirection script. but still not break out of frame. okay, i need something that would execute the <a target=_top href="http://www.vinaclub.net">here</a> automatically.