View Single Post
Old 10-29-2005   #5 (permalink)
AnachroNia
Registered User
 
Join Date: Oct 2005
Posts: 25

Well.... this "<META http-equiv="refresh" content="3;URL=http://ursite.com" target="_blank">" is the way to refresha a page with meta.. but it doesnt support 'target' or i didnt know something like this.... but you can use some javascripts ....


<script>

//refresh time is in "minutes:seconds"
var timer="0:03"

if (document.images){
var something=timer.split(":")
something=something[0]*60+something[1]*1
}
function refreshtime(){
if (!document.images)
return
if (something==1){
window.location.reload()
//HERE's The call of the popup function....
}
else{
something-=1
currentminutes=Math.floor(something/60)
currentsec=something%60
if (currentminutes!=0)
currenttime=currentminutes+" minutes and "+currentsec+" seconds until page refresh!"
else
currenttime=currentsec+" seconds left until page refresh!"
window.status=currenttime
setTimeout("refreshtime()",1000)
}
}

window.onload=refreshtime
//-->
</script>


This is a Javascrpit that refreshs your page 3 sec's later when you open the page.... maybe you'll need something like "javascript:window.close();" to close the window.... or maybe not.... and now it's time for the popup you have mentioned... I'll let you to do it yourself so you can make it work how yo u want... but... i'm not sure you'll want to make it so complicated and unreliable way.... Maybe if you say some more information about what's the site and why you have to do something like this we'll find better way to do it...

Respect ! ! !
__________________
The Impossible Takes Me Time....
AnachroNia is offline