Tutorial

D epending on your knowledge of HTML and javascripts, this is an easy one part copy and paste code that goes in the <HEAD> section of your document with easy minimal reconfigurations. See below for the reconfigurations.

# Read the questions and then enter your   #
# answers within the double quotes "".       #
# Then your selections will be displayed    #
# accordingly.                                                #
##############################
*/

// Would you like to display the date?
       var ShowDate="Yes" // Yes or No

       // Which date format would you like?
                //for: Sunday, January 1, 2002 type the number 1
                //for: January 1, 2002 type the number 2
                //for: 01/01/2002 type the number 3
        var UserAnswer="1"

        // Would you like the year to be displayed in Roman Numerals?
        var Roman="No"     // Yes or No

// Would you like to display a timestamp?
        var ShowTime="Yes"     // Yes or No

        // If yes, - What format would you like the time?
                // 11:15:00 type in a value of 1
                // 11:15 type in a value of 2
        var TimeFormat="2"

        // Do you want to add the "th" "nd" or "st" after the date? "1st"
        var ShowProperDate="Yes"     // Yes or No

        // Do want the time and date on the same line?
        var SameLine="No"     //Yes and No

        // Would you like Military Time on or off?
        var MilitaryTime="Off"     // On or Off

        // Would you like to see the AM and PM?
        var TurnOnAMPM="No"     // Yes or No

// Would you like to show a welcome message? "Good Morning," etc?
        var ShowWelcome="Yes"     // Yes or No

        // Would you like it to be on the same line as the date?
        var WelcomeSameLine="Yes"     // Yes or No

// Would you like this all to be centered on the page?
        var Centered="Yes"     // Please type either Yes or No

        // What font color would you like?
        // Just type the name of any basic color: Red, black, etc
        var fontcolor="Lime"

        // What font face would like?
        // Times New Roman, Arial, Verdana, Comic Sans MS, Courier New, etc
        var fontface="Arial"

        // What font size would you like? (-3,-2,-1,0,+1,+2,+3)
        var FontSize="2"

// EVERYTHING YOU NEED TO READ STOPS HERE

T he above reconfigurations are basically self-explanatory and quite easy to follow.

Note Of Importance O n a note of importance in reference to the positioning of the effect on the page. (Center or not)

// Would you like this all to be centered on the page?
        var Centered="Yes"     // Please type either Yes or No

If you select "No", then it will automatically default to appear on the left side of the page. If you would like it to appear on the right side of the page, then just add an opening and closing <div> tag in front of the script and after the end of the script. See below:

<div align="right">

Entire Script Goes Here!

</div>

Note Of Importance O n one last reconfiguration that you can make even though the author of the script does not tell you about it is to change the greeting messages if you select to. In order to do this, you must have the
var ShowWelcome="Yes"
chosen. Not in the below part of the code but in the reconfiguration part of the code

if (ShowWelcome=="Yes") {
if ((theHour>=0) && (theHour<=6)){ document.write("Good Early Morning")}
if ((theHour>=7) && (theHour<=11)){ document.write("Good Morning")}
if ((theHour>=12) && (theHour<=16)){ document.write("Good Afternoon")}
if ((theHour>=17) && (theHour<=20)){ document.write("Good Evening")}
if ((theHour>=21) && (theHour<=23)){ document.write("Good Night")}
}

Note Of Importance O n a last final note if you select not to have a greeting and select "No"

        // Would you like to show a welcome message? "Good Morning," etc?
        var ShowWelcome="No"     // Yes or No
In that reconfiguration, you may want to make one other little change somewhere else in the script. Reason being if you don't, then what you will see is this:

; it's Wednesday, July 13th, 2005
2:58

W hat you may want to remove are the ; and the word it's so when the effect is seen it will look like this:

Wednesday, July 13th, 2005
2:58

Reconfiguration

if ((theHour>=12) && (theHour<=16)){ document.write("Good Afternoon")}
if ((theHour>=17) && (theHour<=20)){ document.write("Good Evening")}
if ((theHour>=21) && (theHour<=23)){ document.write("Good Night")}
}
else {document.write("")}
if (WelcomeSameLine=="Yes") {document.write("; it's ")}
else {document.write("!<br>")}

T hose are all the reconfigurations there are within this script. If you would like to add this effect into your pages, just close this page and grab the link on the page from whence you came.

Copyright © Consigliere Ltd., All Rights Reserved. 2001-