12-12-2002, 04:18 AM
|
PM User |
#1
|
|
New Coder
Join Date: Aug 2002
Location: Here I am, is Where I'm at!
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
|
How to change font within a JS script
Anyone have any idea about how I can control the font in the following date script? It now appears as 'New Times Roman' and I'd like for it to be arial like the text on all my pages.
Here's the script:
Quote:
<!--
// Displays appropriate greeting based on hours of day.
now = new Date();
if (now.getHours() < 12)
document.write("Good Morning, Today is ");
else if (now.getHours() < 17)
document.write("Good Afternoon, Today is ");
else document.write("Good Evening, Today is ");
var today = new Date();
var browser = navigator.appName;
months = new Array( "January","February","March","April","May","June","July","August","September","October","November"," December" );
document.writeln( months[ today.getMonth() ] + " " + today.getDate() + ", " + ( (browser != "Netscape" ) ? today.getYear() : today.getYear() + 1900 ) );
//-->
|
__________________
Adopt a siggy!
Your Message Here....
|
|
|
|