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.
>
>
>.
>