Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head><title>Vremenska stranica</title>
- </head>
- <body>
- Vrijeme uèitavanja stranice:
- <script type="text/javascript">
- now = new Date();
- document.write("<p>" + now + "</p>");
- time = "AM";
- hours = now.getHours();
- if (hours > 12) {
- hours -= 12;
- time = "PM"
- }
- else if (hours == 0) {
- hours = 12;
- }
- document.write("<p>" + hours + ":" +
- now.getMinutes() + ":" +
- now.getSeconds() + " " +
- time + "</p>");
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement