PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

how can I redirect a web page to another with 5 second timer?

 
 
=?Utf-8?B?a291cm9zaA==?=
Guest
Posts: n/a
 
      24th Sep 2005
I want to redirect one of my html pages to another after a specific time, How
can I do that?
 
Reply With Quote
 
 
 
 
Steve Easton
Guest
Posts: n/a
 
      24th Sep 2005
<meta http-equiv="Refresh" content="5; URL=pagename.htm">

will open pagename.htm in 5 seconds.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"kourosh" <(E-Mail Removed)> wrote in message
news:B8FDEE26-72AD-4A90-A5BE-(E-Mail Removed)...
> I want to redirect one of my html pages to another after a specific time, How
> can I do that?



 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      24th Sep 2005
It goes between the <head></head> tags

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"kourosh" <(E-Mail Removed)> wrote in message
news:B8FDEE26-72AD-4A90-A5BE-(E-Mail Removed)...
> I want to redirect one of my html pages to another after a specific time, How
> can I do that?



 
Reply With Quote
 
Jon Spivey
Guest
Posts: n/a
 
      24th Sep 2005
That certainly works but keep in mind it will kill your search engine
ranking for the page.

--
Cheers,
Jon
Microsoft MVP


"Steve Easton" <(E-Mail Removed)> wrote in message
news:O8%(E-Mail Removed)...
> It goes between the <head></head> tags
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "kourosh" <(E-Mail Removed)> wrote in message
> news:B8FDEE26-72AD-4A90-A5BE-(E-Mail Removed)...
>> I want to redirect one of my html pages to another after a specific time,
>> How
>> can I do that?

>
>



 
Reply With Quote
 
=?Utf-8?B?Y2FyeQ==?=
Guest
Posts: n/a
 
      8th Feb 2007
What if you wanted to redirect to a web page at a specific clock time? I
need it to close the existing web page and open a new one.

Thanks.

"Steve Easton" wrote:

> <meta http-equiv="Refresh" content="5; URL=pagename.htm">
>
> will open pagename.htm in 5 seconds.
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> ........................with a computer
>
> "kourosh" <(E-Mail Removed)> wrote in message
> news:B8FDEE26-72AD-4A90-A5BE-(E-Mail Removed)...
> > I want to redirect one of my html pages to another after a specific time, How
> > can I do that?

>
>
>

 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      9th Feb 2007
cary wrote:
> What if you wanted to redirect to a web page at a specific clock
> time? I need it to close the existing web page and open a new one.
>
> Thanks.


Well, I would have to think about that

I think what it needs is a JavaScript function which has a variable set to
the time at which you want to change to a different page, and then checks
the clock time every second against this time. When reached, it redirects

(pseudo code)
var set_time = 12:42
Execute this loop every second
Get clock_time
If clock_time >= set_time
then redirect
end Loop

I am sure it isn't too difficult. It is similar to count down timers which
check against a given time and then display the hours minutes and seconds to
go to the given time. The only difference is that it doesn't need to display
anything - just do the redirect when the time to go is zero (or less)

I have written one of those, so I can try to adapt it if you want.
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------

 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      12th Feb 2007
Trevor L. wrote:
> cary wrote:
>> What if you wanted to redirect to a web page at a specific clock
>> time? I need it to close the existing web page and open a new one.
>>
>> Thanks.

>
> Well, I would have to think about that


Well, I thought about it and here it is.

You can of course delete everything I have put between <body > amd </body>,
so that the visitor is unaware that a redirect will occur.

<html>
<head>
<script type="text/javascript">
// Enter Location here
var newlocn = "http://tandcl.homemail.com.au"

// Set Specific Date and Time
var myDate = new Date()
myDate.setFullYear(2007,01,13) // 13th February 2007
myDate.setHours(11,58,0,0) // 11:58

function CountDown()
{
// Get the Current Date and Time
var now = new Date()

// Redo if time left to the specific date
if(myDate - now > 0)
timerID = setTimeout("CountDown()", 100)
else
location.href=newlocn
}
window.setTimeout('CountDown()',100);
</script>
</head>

<body>
<b>Redirect </b><br />
You will be redirected to another site at
<script type="text/javascript">
document.write(myDate.toLocaleDateString() + ' ' +
myDate.toLocaleTimeString())
</script><br />

</body>
</html>
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.redirect inside a Timer Event =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= Microsoft ASP .NET 7 23rd Oct 2007 05:27 PM
How to prevent the popup child page redirect to login page? ABC Microsoft ASP .NET 0 12th Dec 2005 08:40 AM
page timer, or redirect timer Simon Microsoft ASP .NET 1 4th Nov 2005 07:14 PM
Response.redirect does not redirect from .aspx page =?Utf-8?B?VHJveQ==?= Microsoft ASP .NET 2 18th Oct 2004 08:46 PM
How to make a page stay open only for few soconds, then redirect automaticaly to another page NWx Microsoft ASP .NET 3 16th Feb 2004 05:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 AM.