28Jul/090
How to put a clock on your website
Here is how you can put a clock on your website.
Put the code below within your site's source code. If you dont know how to implement this code into your site, please goto how to implement the code to your website
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | <!-- this script is from www.manycodes.com --> <SCRIPT LANGUAGE= "JavaScript" > var timerID = null ; var timerRunning = false ; function stopclock () { if (timerRunning) clearTimeout(timerID); timerRunning = false ; } function showtime () { var now = new Date(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds() var timeValue = "" + ((hours > 12 ) ? hours - 12 :hours) timeValue += ((minutes < 10 ) ? ":0" : ":" ) + minutes timeValue += ((seconds < 10 ) ? ":0" : ":" ) + seconds timeValue += (hours >= 12 ) ? " P.M." : " A.M." document.clock.face.value = timeValue; // you could replace the above with this // and have a clock on the status bar: // window.status = timeValue; timerID = setTimeout( "showtime()" , 1000 ); timerRunning = true ; } function startclock () { // Make sure the clock is stopped stopclock(); showtime(); } </SCRIPT> <BODY onLoad= "startclock(); timerONE=window.setTimeout" TEXT= "ffffff" > <CENTER><form name= "clock" onSubmit= "0" > <input type= "text" name= "face" size= 13 value= "" ></CENTER> <font face= "Tahoma" ><a target= "_blank" href= "http://www.manycodes.com/category/java/javascript-codes/" ><span style= "font-size: 8pt; text-decoration: none" >JavaScript Free Code</span></a></font> |
Congratulations
Your first AWS Elastic Beanstalk Node.js application is now running on your own dedicated environment in the AWS Cloud
This environment is launched with Elastic Beanstalk Node.js Platform
What's Next?
- AWS Elastic Beanstalk overview
- AWS Elastic Beanstalk concepts
- Deploy an Express Application to AWS Elastic Beanstalk
- Deploy an Express Application with Amazon ElastiCache to AWS Elastic Beanstalk
- Deploy a Geddy Application with Amazon ElastiCache to AWS Elastic Beanstalk
- Customizing and Configuring a Node.js Container
- Working with Logs