I know how to use the controls to have a page show during a given time, say
from January 1 - February 15.

What I'd like to do is this:

Put a series of pages on my website such as:
January.htm
February.htm
March.htm

Is there a way to code it so that in January the January.htm page is the one
that shows up, in February the February.htm page, etc.?

Thanks.

changing pages on a schedule by anonymous

anonymous
Tue Feb 03 00:20:34 CST 2004

Hello,

>I know how to use the controls to have a page show during=20
a given time, say
>from January 1 - February 15.
Which technique do you use?
If its JavaScript, you need only to "ask" the computer=20
which month we have and based on the answer load the page=20
you want.

Example:
<!--
// HTML is interpreted by IE which I used to
// read the Newsgroup, I have to comment it

<script language=3Djavascript>
var loc=3Dnew Array("january","februar","march",...);
var d=3Dnew Date();
window.location=3Dloc[d.getMonth()]+".htm";
</script>

// Replace the dots by further months if you need them.
-->

But: It won't work at a browser that doesn't understand=20
JavaScript.

Another solution could be PHP, but you have to ask another=20
one to explain it. PHP as server-side language will work=20
everytime if your server offers PHP.

K=F6ck Matthias



>
>What I'd like to do is this:
>
>Put a series of pages on my website such as:
>January.htm
>February.htm
>March.htm
>
>Is there a way to code it so that in January the=20
January.htm page is the one
>that shows up, in February the February.htm page, etc.?
>
>Thanks.
>
>
>.
>

Re: changing pages on a schedule by Glenn

Glenn
Tue Feb 03 06:51:01 CST 2004

Where can I find out more about PHP? Does it come on Server 2000?

"Köck Matthias" <anonymous@discussions.microsoft.com> wrote in message
news:8a2801c3ea1d$d4ee3d00$a301280a@phx.gbl...
Hello,

>I know how to use the controls to have a page show during
a given time, say
>from January 1 - February 15.
Which technique do you use?
If its JavaScript, you need only to "ask" the computer
which month we have and based on the answer load the page
you want.

Example:
<!--
// HTML is interpreted by IE which I used to
// read the Newsgroup, I have to comment it

<script language=javascript>
var loc=new Array("january","februar","march",...);
var d=new Date();
window.location=loc[d.getMonth()]+".htm";
</script>

// Replace the dots by further months if you need them.
-->

But: It won't work at a browser that doesn't understand
JavaScript.

Another solution could be PHP, but you have to ask another
one to explain it. PHP as server-side language will work
everytime if your server offers PHP.

Köck Matthias



>
>What I'd like to do is this:
>
>Put a series of pages on my website such as:
>January.htm
>February.htm
>March.htm
>
>Is there a way to code it so that in January the
January.htm page is the one
>that shows up, in February the February.htm page, etc.?
>
>Thanks.
>
>
>.
>



Re: changing pages on a schedule by anonymous

anonymous
Tue Feb 03 07:19:41 CST 2004

Hello,

> Where can I find out more about PHP? Does it come on=20
> Server 2000?
As I wrote - you have to ask at your server or to test if=20
PHP is offered.
To find something I recommand a search engine. Try PHP=20
+Tutorial at www.google.com or www.lycos.com etc. I know=20
only German PHP-Tutorials (I don't think they'll help you).

K=F6ck Matthias



Re: changing pages on a schedule by Mike

Mike
Tue Feb 03 09:24:27 CST 2004

As Köck states in the PHP route, you need to know what your provider has.
If PHP then you can do that. I dont know PHP and my provider doesn't offer
it. I do have ASP available and that is basically just vb. Your could then
do a Server Side Include. The following example changes by week. You would
need to modify it obviously.

<%
Dim WeekNumber
Dim WeekPage
WeekNumber = DatePart("ww", Date, 1,1)
%>

<% If WeekNumber= "1" then %>
<!--#include file="week1.asp" -->
<% End If %>
<% If WeekNumber = "2" then %>
<!--#include file="week2.asp" -->
<% End If %>

"Glenn" <me@me.com> wrote in message
news:OKOfSag6DHA.2692@TK2MSFTNGP09.phx.gbl...
> I know how to use the controls to have a page show during a given time,
say
> from January 1 - February 15.
>
> What I'd like to do is this:
>
> Put a series of pages on my website such as:
> January.htm
> February.htm
> March.htm
>
> Is there a way to code it so that in January the January.htm page is the
one
> that shows up, in February the February.htm page, etc.?
>
> Thanks.
>
>