ThreeClicks.com

The way to get to where you want to go today.

▄ ThreeClicks.com . . . We do Windows
Home
Virus and Computer Safety
Windows Power Toys
Power Toys for IE 5
Pop-Up Stopper
Tiny Applications
Compressing Wave Files
Adding Sounds to a Web Page
Java Script Samples
Frequently Asked Questions
Do I Need My Own Web Site?
AOL Timer Killer
411 Online Phonebooks
Reverse Phone Directory
Fast Find on the WWW
Shared Links and Guestbook
Newsletter 9/9/99
LQQK Can you handle the truth?
 
 

Behind the Curtain

Where I might say a few words from time to time to notify visitors of changes or additions.
Yeah, right.

Or maybe I will just comment on some current event.

A policy of an eye for an eye, will only lead to everyone being blind.

Pay no attention to that man behind the curtain.

oz@threeclicks.com

 

Contact Us | Search | About Us     
<script type="text/javascript"><!-- google_ad_client = "pub-4366881223256375"; /* 728x90, created 7/30/08 */ google_ad_slot = "0345444379"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
Ľ Java Script Samples                                                       
Java Script Calculator ] Java Script Magic 8 Ball ] Java Script Popup Windows ] Java Script Toys and Games ] Email Code ] Java Script Buttons ]

JScript Samples: Welcome



At least it is according to your computer's clock.
How Does This Sample Work?

As the page is loaded, <SCRIPT> tags are encountered by the browser. These <SCRIPT> tags contain code that executes as the HTML page is being parsed. This code writes content into the page using an object supplied by the browser. For this example, the Microsoft« JScript« code calls the document object's Write method, and passes it a string. All of this is done on the client side: no special server side processing, no PERL hacking, no fuss, no muss!

The code
<SCRIPT LANGUAGE="JavaScript">
<!--

    // These next lines of code execute when the script tag is parsed.

    var d = new Date()
    var h = d.getHours()

    if (h < 12)
        document.write("Good morning!")
    else
        if (h < 17)
            document.write("Good afternoon!")
        else
            document.write("Good evening!")


    document.write("<br><br>Welcome to the world of JScript.  ")
    document.write("<br>Just in case you were wondering, it's " + d + ".")

//-->
</SCRIPT>

 

Hit Counter


<script type="text/javascript"><!-- google_ad_client = "pub-4366881223256375"; /* 728x90, created 7/30/08 */ google_ad_slot = "0345444379"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
ThreeClicks.com and Oz@ThreeClicks.com are trademarks of ThreeClicks.com, Inc.
Sarasota, Florida 34231 USA 
Other products mentioned may be trademarks of their respective companies.


Questions or problems regarding this web site should be directed to oz@threeclicks.com
Copyright ę 1997 - ThreeClicks.com. All rights reserved.
TERMS OF USE
 

| RELOAD^ TOP | < BACK |     

........ Think Correctly  ▄ ........ Think Correctly  ▄ ........ Think Correctly  ▄