The Final Chapter

    This is where we found that the soup need some mixing,and are we going to mix it up.
    Here Goes.
    Now you have a site that needs updating on a regular bases. This is most useful.

    First your need your code from Dynamic Drive. You can get a refresher back on page (2) two.

    Then you'll need to set up your Sunday Threw Saturday htm.
    In the Sunday threw Saturday htm you'll need to set the up as the hour one from www.w3school.

    On you day htm file you'll have to split thing up a little. When nothing change for that hour your can enter your message in docoment.write. Now if you have to make a change on the half hour or anytime with-in that hour you'll have to use window.location amd point to an htm file. Whith In that htm file you can make your time selection in minutes such as
    (time>=00 && time<07). Message remains the same as from the previous hour.
    (time>=07 && time<50) at 7 minutes after new message
    (time>=50 && time<60) new message change at ten minute before the hour

        <!--
        if (time>=00 && time<07)
    {
    document.write("<center><div class=today2>We're sorry but we are closed till 7:30 A.M. <br><br>See You Then</br></center></div> ");
    }
    else if (time>=07 && time<08)
    {
    window.location = "http://anchorsite.yolasite.com/resources/updater/mon730.htm";
    }
    else if (time>=08 && time<09)
    {
    document.write("<center><div class=today2>Be sure to stop by for our gardening classe at 9:45 A.M. in the Home & Garden section</br></center></div>");
    }
        --> 


    Let us say from midnight till 7:30 A.M. the message remains the same till it changes at 7:30. At the hour between 7:00 A.M. and 8:00 A.M.
    else if (time>=07 && time<08) { window.location = "http://anchorsite.yolasite.com/resources/updater/mon730.htm"; } The file in this case is mon730.htm and inside that file it's written as follows

    Lets create a working excample. The schedule can be as follows.
    if (minute>=00 && minute<30) { document.write("
    We're sorry but we are closed till 7:30 A.M. Monday

    See You Then
    "); } else if (minute>=30 && minute<60) { document.write("
    Be sure to stop by for our gardening classe at 9:45 A.M. Monday in the
    Home & Garden section
    "); }
    As you can see the (minute>=00 && minute<30) carries the same message that was used from midnight to 7:00 A.M.
    (minute>=30 && minute<60) and at 30 minutes after the hour till the top of the hour your new message appears. You can also copy and past the same message the latter half hour to the next hour.

    Now here's a working excample of of menu that we used. when you visit our site the menu time should match the updater mesage below the menu.

    Monday.....Midnight till 7:30 A.M.....Announces Opening Time At 7:30 A.M. Monday
    Monday.....7:30 A.M. till 9:45 A.M....Announces Gardening Classes At 9:45 A.M. Monday In Home & Garden Area
    Monday.....9:45 A.M till 12:30 P.M....Announces Lunch Will Be Served At 12:30 P.M. Monday
    Monday.....12:30 P.M. till 5:00 P.M...Announces Store Closes At 5:00 P.M. Monday
    Monday.....5:00 P.M. till Midnight:...Announces That Store Will Be Closed Till 8:15 A.M. Tuesday

    Tuesday....Midnight till 8:15 A.M.....Announces Store Opens At 8:15 A.M. Tuesday
    Tuesday....8:15 A.M. till 8:30 A.M....Announces Classes How To Install A Muffler.
    Tuesday....8:30 A.M. till 12:15 P.M...Announces Lunch
    Tuesday....12:15 P.M. till 5:30 P.M...Announces Store Closing
    Tuesday....5:30 P.M. till Midnight....Announces Store Opens At 7:30 A.M. Wednesday
    Wednesday..Midnight till 7:30 A M.....Announces Store Opens At 7:30 A.M. Wednesday
    Wednesday..7:30 A.M. till 8:30 A.M....Announce Store Wide Sale Starting At 8:30 A.M. Wednesday
    Wednesday..8:30 A.M. till 12:15 P.M...Announces Lunch
    Wednesday..12:15 P.M. till 5:30 P.M...Announces Store Closing At 5:30 P.M. Wednesday
    Wednesday..5:30 P.M. till Midnight....Announces Store Opens At 7:30 A.M. Thursday
    Thursday...Midnight till 7:30 A.M.....Announces Opening Time At 7:30 A.M. Thursday
    Thursday...7:30 A.M. till 9:45 A.M....Announces Gardening Classes At 9:45 A.M. Thursday In Home & Garden Area
    Thursday...9:45 A.M till 12:30 P.M....Announces Lunch Will Be Served At 12:30 P.M. Thursday
    Thursday...12:30 P.M. till 5:00 P.M...Announces Store Closes At 5:00 P.M. Thursday
    Thursday...5:00 P.M. till Midnight:...Announces That Store Will Be Closed Till 8:15 A.M. Friday
    Friday.....Midnight till 8:15 A.M.....Announces Store Opens At 8:15 A.M. Friday
    Friday.....8:15 A.M. till 8:30 A.M....Announces Classes How To Install A Muffler.
    Friday.....8:30 A.M. till 12:15 P.M...Announces Lunch
    Friday.....12:15 P.M. till 5:30 P.M...Announces Store Closing for Friday
    Friday.....5:30 P.M. till Midnight....Announces Store Opens At 7:30 A.M. Saturday
    Saturday...Midnight till 7:30 A M.....Announces Store Opens At 7:30 A.M. Saturday
    Saturday...7:30 A.M. till 8:30 A.M....Announce Store Wide Sale Starting At 8:30 A.M. Saturday
    Saturday...8:30 A.M. till 12:15 P.M...Announces Lunch
    Saturday...12:15 P.M. till 5:30 P.M...Announces Store Closing At 5:30 P.M. Saturday
    Saturday...5:30 P.M. till Midnight....Announces Store Opens At 7:30 A.M. Monday
    Sunday.....Doors Open Monday 7:30am


    If you look at the above schedule and compare it to the auto updater below this should be what you are seeing in both places. You can in the XXXday.htm to our Hour Code use --document.write("Whatever text goes here");--.
    However in the section of XXXday.htm where the minute changes occure you have to change the --document.write("Whatever text goes here");-- and convert it to --window.location = "http://www.anchorsite.yolasite.com/resources/YYYFILE.htm";--. The YYYFILE.htm give you tha ability to change any time within a given hour(4:22 change). Document write is for hour to hour changes and window.locate provide a path to the file for changing with in a given hour.
    Once your have your schedule in place you need only to update as required, and not have to make changes everyday. Take your time when setting up and look. When you place the daily update in box pointing to your minute .htm and upload your file you'll be in business.
    Here is the htm file for
    Monday, in red above.
    Make sure when using document write or window locate you do all entreis on one line. DO NOT HIT ENTER OR START A NEW LINE.
    If you do the code will not work.

    <!--

    <style type=text/css>
    .today2
    {
    font: Bold Italic 20px Perpetua;
    color: #000000;
    }
    </style>

    <style type=text/css>
    .today1
    {
    font: Bold Italic 20px Perpetua;
    color: #EE0000;
    }
    </style>


    <html>
    <body>
    <p>
    <center><div class=today1> Today  is Monday</div></center>
    </p>
    <script type="text/javascript">
    var d = new Date();
    var time = d.getHours();

    if (time>=00 && time<07)
    {
    document.write("<center><div class=today2>We're sorry but we are closed till 7:30 A.M. <br><br>See You Then</br></center></div> ");
    }
    else if (time>=07 && time<08)
    {
    window.location = "http://anchorsite.yolasite.com/resources/updater/mon730.htm";
    }
    else if (time>=08 && time<09)
    {
    document.write("<center><div class=today2>Be sure to stop by for our gardening classe at 9:45 A.M. in the Home & Garden section</br></center></div>");
    }
    else if (time>=09 && time<10)
    {
    window.location = "http://anchorsite.yolasite.com/resources/updater/mon945.htm";
    }
    else if (time>=00 && time<12)
    {
    document.write("<center><div class=today2>Please stay for lunch at 12:30 P.M. in our dinning room<br><br>All are welcome<br><br>Thank You</br></center></div>");
    }

    else if (time>=12 && time<13)
    {
    window.location = "http://anchorsite.yolasite.com/resources/updater/1230mon.htm";
    }

    else if (time>=13 && time<17)
    {
    document.write("<center><div class=today2>We enjoy you stopping by and shopping with us.<br><br>However we will be closing at 5:00 P.M. this evening.</br></center></div>");
    }

    else if (time>=17 && time<24)
    {
    document.write("<center><div class=today2>SORRY<br>We are Closed<br>We will re-open at 8:15 A.M. </br></center></div>");
    }


    </script>


    </body>
    </html>

    -->

    Please if you try to copy this code it may or may not work. Others have tried to copy code and for some reason the change going from the html widget to text widget to where you post them. Of cource using the notebook may help.
    This show how we were able to get day of the week to function.
    Here again where thing from hour remain the same you can use the

    (time>=08 && time<09) { document.write("Same message for this time frame"); }

    Just remember you have to use the 24 hour clock and not the 12 hour clock.

    In the XXXday.htm file you need some thing change at 8:30 This processer would be used.
    Where as the time is between 7:00 A.M. and 8:00 A.M. window locate will direct you to YYYfile.htm

    (time>=07 && time<08) { window.location = "YYYfile.htm"; } <

    This window.location will take you to your minute file. With in the YYYfile.htm you find.
    The message before the 30 minute mark is "We're sorry but we are closed till 7:30 A.M. See You Then"

    The file will show content like this

    <1-- if (minute>=00 && minute<30) { document.write("
    We're sorry but we are closed till 7:30 A.M.

    See You Then
    "); } -->

    and after the 30 minute mark the messaqge is "Be sure to stop by for our gardening classe at 9:45 A.M. in the
    Home & Garden section" else if (minute>=30 && minute<60) { document.write("
    Be sure to stop by for our gardening classe at 9:45 A.M. in the
    Home & Garden section
    "); }

    So here you have a change at 7:30 Past Event to a Future Event
    I hope that with all the direction here it will work for you as it works for me. Just give yourself time to study. Once you start using this it will all become easy to see.

    Papa