JavaScript to Wish “Good Morning”

18 June 2012

Liverpool  : WISHES FOR A DAY /* This script will display A “Good Morning” Message if the time is less than or equal to 10.Otherwise, it display a “Message Good Day”*/

<html>

<body>

<script type=”text/javascript”>

var d = new Date();

var time = d.getHours();

if (time <= 10)

{

document.write(“<h1>Hai Good morning!!!</h1>”);

}

else

{

document.write(“</h1>Good day!!!!!!!</h1>”);

}

</script>

</body>

</html>

It produces the output as:
if the time is <=10Hai!!!!Good morning
Otherwise
Good day!!!!!!!

Why Fortune Innovations?

  • Cost-saving for your projects, up to 40%
  • Hire web development and web designing specialists
  • Project management based out in Liverpool
  • 50 plus strong off shore development team based in Bangalore, India
  • Expert teams well verse with Web 2.0 standards
  • Quality-driven delivery model
  • Detailed time sheets, daily reporting and regular status updates
  • WordPress Development in Liverpool
  • Drupal Development in Liverpool
  • Joomla Development in Liverpool
  • eCommerce Magento Liverpool
  • Web Development Liverpool
  • Web Design Liverpool
  • jQuery development Liverpool
  • Zend framework development Liverpool
  • Airline IBE GDS Integration Navitaire Liverpool
  • Airline IBE GDS Integration Aamadeus Liverpool