Advertisement
honghoavi

Conditional statements if-else-switch 01

Jun 28th, 2012
1,828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript"><!--
  2. // if the hour > 11, prints Hello!
  3. var d = new Date();
  4. var time = d.getHours();
  5. if (time>11) {
  6.  document.write("<b>Hellow!</b>")
  7. }
  8. --></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement