Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?php
$day_of_week = strtolower(date('D')); // mon, tue, etc.
header("Location: index" . $day_of_week . ".php");
?>
$day_of_week = strtolower(date('D')); // mon, tue, etc.
require_once ("index" . $day_of_week . ".php");
<html>
<head>
<title>Dynamic Paragraphs</title>
<script language="JavaScript">
<!--
function getParagraph() {
var parArray = new Array(7);
var the_date = new Date();
var the_day = the_date.getDay();
parArray[1] = 'This is the paragraph for Monday';
parArray[2] = 'This is the paragraph for Tuesday';
parArray[3] = 'This is the paragraph for Wednesday';
parArray[4] = 'This is the paragraph for Thursday';
parArray[5] = 'This is the paragraph for Friday';
parArray[6] = 'This is the paragraph for Saturday';
parArray[7] = 'This is the paragraph for Sunday';
document.getElementById("paragraph").innerHTML = parArray[the_day];
}
-->
</script>
</head>
<body onload="getParagraph();">
<p>
Here is the paragraph for today:<br><br>
<div id="paragraph"></div>
</p>
</body>
</html>
<html>
<head>
<title>Dynamic Paragraphs</title>
<script language="JavaScript">
<!--
function getParagraph() {
var parArray = new Array(7);
var the_date = new Date();
var the_day = the_date.getDay();
parArray[1] = '<iframe src = mon.htm></iframe>';
parArray[2] = '<iframe src = tues.[COLOR=red]pdf[/color]></iframe>';
parArray[3] = '<iframe src = Wed.[COLOR=blue]txt[/color]></iframe>';
parArray[4] = '<iframe src = Thurs.htm></iframe>';
parArray[5] = '<iframe src = fri.htm></iframe>';
parArray[6] = '<iframe src = Sat.htm></iframe>';
parArray[7] = '<iframe src = Sun.htm></iframe>';
document.getElementById("paragraph").innerHTML = parArray[the_day];
}
-->
</script>
</head>
<body onload="getParagraph();">
<p>
Here is the paragraph for today:<br><br>
<div id="paragraph"></div>
</p>
</body>
</html>