TekSupporter
MIS
I need to change the font size on a date script that I have on my page.
I am using dreamweaver cs5. What is a no frills way to go about this, as I am not a code-warrior.
Or alternatively, Is there an easier way to get a simple dynamic date stamp on a web page.
The page is made in html and hosted off IIS.
Thank You
This is the script that I am using.
<script>
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small>")
</script>
TekSupporter
MCP, A+, CNA
I am using dreamweaver cs5. What is a no frills way to go about this, as I am not a code-warrior.
Or alternatively, Is there an easier way to get a simple dynamic date stamp on a web page.
The page is made in html and hosted off IIS.
Thank You
This is the script that I am using.
<script>
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small>")
</script>
TekSupporter
MCP, A+, CNA