topical media & game development

talk show tell print

basic-web-html-11-exercise2.htm / htm

  <?xml version="1.0" ?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  <html xmlns="" lang="en" xml:lang="en">
  <title>String Object</title>
  <script type="text/JavaScript"> 
    date = new Date(); 
    time = date.getHours(); 
    if (time < 12) 
    document.write('Good Morning');
    if (time > 12 && time < 18)
    document.write('Good Afternoon')
    if (time > 18)
    document.write('Good Evening');

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.