Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript"><!--
- // if 'time' > 11, prints Hello!
- // Otherwise "It's ... o`clock"
- var d = new Date()
- var time = d.getHours()
- if (time>11) {
- document.write("<b>Hello!</b>")
- }
- else {
- document.write("<b>It`s " +time+ " o`clock</b>")
- }
- --></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement