dcjones
10-10-2003, 06:22 AM
Hi All,
This is a simple one but I am having problems with it.
I need to add the current date to a HTML page. I am using the following script. It works BUT how do I change the colour of trhe OUTPUT. It is currently showing in black. Any help would be good.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Dynamic Date Display</TITLE>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
now = new Date
// End hiding script from old browsers -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="WHITE">
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
document.write("<H1><TD font color='#0252C3'>Today is " + dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + now.getDate() + ".</TD><\/H1> ")
// End hiding script from old browsers -->
</SCRIPT>
</BODY>
</HTML>
Regards and thanks in advance for any help you can give.
Dereck
This is a simple one but I am having problems with it.
I need to add the current date to a HTML page. I am using the following script. It works BUT how do I change the colour of trhe OUTPUT. It is currently showing in black. Any help would be good.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Dynamic Date Display</TITLE>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
now = new Date
// End hiding script from old browsers -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="WHITE">
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
document.write("<H1><TD font color='#0252C3'>Today is " + dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + now.getDate() + ".</TD><\/H1> ")
// End hiding script from old browsers -->
</SCRIPT>
</BODY>
</HTML>
Regards and thanks in advance for any help you can give.
Dereck