28Jul/090
How to show today’s Date on your website
Here is how you can show today's Date 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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | <!-- this script is from www.manycodes.com --> <!-- ONE STEP TO INSTALL MONTHLY: DAY HIGHLIGHTED: 1 . Put the code into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the HEAD your HTML document --> <html> <head> <meta name= "GENERATOR" content= "Microsoft FrontPage 6.0" > <meta name= "ProgId" content= "FrontPage.Editor.Document" > </head> <body> <center> <script LANGUAGE= "JavaScript" > <!-- Begin monthnames = new Array( "January" , "Februrary" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "Decemeber" ); var linkcount= 0 ; function addlink(month, day, href) { var entry = new Array( 3 ); entry[ 0 ] = month; entry[ 1 ] = day; entry[ 2 ] = href; this [linkcount++] = entry; } Array.prototype.addlink = addlink; linkdays = new Array(); monthdays = new Array( 12 ); monthdays[ 0 ]= 31 ; monthdays[ 1 ]= 28 ; monthdays[ 2 ]= 31 ; monthdays[ 3 ]= 30 ; monthdays[ 4 ]= 31 ; monthdays[ 5 ]= 30 ; monthdays[ 6 ]= 31 ; monthdays[ 7 ]= 31 ; monthdays[ 8 ]= 30 ; monthdays[ 9 ]= 31 ; monthdays[ 10 ]= 30 ; monthdays[ 11 ]= 31 ; todayDate= new Date(); thisday=todayDate.getDay(); thismonth=todayDate.getMonth(); thisdate=todayDate.getDate(); thisyear=todayDate.getYear(); thisyear = thisyear % 100 ; thisyear = ((thisyear < 50 ) ? ( 2000 + thisyear) : ( 1900 + thisyear)); if (((thisyear % 4 == 0 ) && !(thisyear % 100 == 0 )) ||(thisyear % 400 == 0 )) monthdays[ 1 ]++; startspaces=thisdate; while (startspaces > 7 ) startspaces-= 7 ; startspaces = thisday - startspaces + 1 ; if (startspaces < 0 ) startspaces+= 7 ; document.write( "<table border=2 bgcolor=white " ); document.write( "bordercolor=black><font color=black>" ); document.write( "<tr><td colspan=7><center><strong>" + monthnames[thismonth] + " " + thisyear + "</strong></center></font></td></tr>" ); document.write( "<tr>" ); document.write( "<td align=center>Su</td>" ); document.write( "<td align=center>M</td>" ); document.write( "<td align=center>Tu</td>" ); document.write( "<td align=center>W</td>" ); document.write( "<td align=center>Th</td>" ); document.write( "<td align=center>F</td>" ); document.write( "<td align=center>Sa</td>" ); document.write( "</tr>" ); document.write( "<tr>" ); for (s= 0 ;s<startspaces;s++) { document.write( "<td> </td>" ); } count= 1 ; while (count <= monthdays[thismonth]) { for (b = startspaces;b< 7 ;b++) { linktrue= false ; document.write( "<td>" ); for (c= 0 ;c<linkdays.length;c++) { if (linkdays != null ) { if ((linkdays[ 0 ]==thismonth + 1 ) && (linkdays[ 1 ]==count)) { document.write( "<a href=\"" + linkdays[ 2 ] + "\">" ); linktrue= true ; } } } if (count==thisdate) { document.write( "<font color='FF0000'><strong>" ); } if (count <= monthdays[thismonth]) { document.write(count); } else { document.write( " " ); } if (count==thisdate) { document.write( "</strong></font>" ); } if (linktrue) document.write( "</a>" ); document.write( "</td>" ); count++; } document.write( "</tr>" ); document.write( "<tr>" ); startspaces= 0 ; } document.write( "</table></p>" ); // End --> </script> </center> <!-- Script Size: 2.98 KB --> </body> </html> <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