Changing Text size and colour

wxdqz

New Member
Hi All,

Can anyone help? I've created a page in Dreamweaver MX and to finish it off I'd like the current date to be displayed. Now, being new to all this Java Stuff, I've found a script for this (see below) but when I add it to the page, the text is too big. So...how can I make the text smaller and maybe change the colour?

Any help, very gratefully received.
Cheers, Dinkiz

</head>
<body>

<script LANGUAGE="JavaScript1.2">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");// End -->
</script>
</CENTER>


</body>
</html>
 
Back
Top