By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,035 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,035 IT Pros & Developers. It's quick & easy.

how to change font colour

P: n/a
DP
hi,

i've got this peice of code;

<script language= "JavaScript">
var today = new Date();
var hourOfDay = today.getHours();
var message = " and welcome to MIS ";
if (hourOfDay >=0 && hourOfDay < 12)
{
message="Good Morning"+message;
}
else if (hourOfDay < 17)
{
message="Good Afternoon"+message;
}
else
{
message="Good Evening"+message;
}

document.write (message) ;
</script>

how do i display it in 'dark blue'.

thanx

devin
Jan 17 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
DP wrote:
i've got this peice of code;

<script language= "JavaScript">
var today = new Date();
var hourOfDay = today.getHours();
var message = " and welcome to MIS ";
if (hourOfDay >=0 && hourOfDay < 12)
{
message="Good Morning"+message;
}
else if (hourOfDay < 17)
{
message="Good Afternoon"+message;
}
else
{
message="Good Evening"+message;
}

document.write (message) ;
</script>

how do i display it in 'dark blue'.


<pre style="color:#003; background-color:inherit">
&lt;script language= "JavaScript"&gt;
var today = new Date();
var hourOfDay = today.getHours();
var message = " and welcome to MIS ";
if (hourOfDay &gt;=0 && hourOfDay &gt; 12)
{
message="Good Morning"+message;
}
else if (hourOfDay &lt; 17)
{
message="Good Afternoon"+message;
}
else
{
message="Good Evening"+message;
}

document.write (message) ;
&lt;/script&gt;
</pre>
HTH

PointedEars
Jan 17 '06 #2

P: n/a
DP
that didint do anything m8?

i cant see any text now. i'm trying to display the message bit in blue.
in a web page.

thanx

devin

"Thomas 'PointedEars' Lahn" <Po*********@web.de> wrote in message
news:57****************@PointedEars.de...
DP wrote:
i've got this peice of code;

<script language= "JavaScript">
var today = new Date();
var hourOfDay = today.getHours();
var message = " and welcome to MIS ";
if (hourOfDay >=0 && hourOfDay < 12)
{
message="Good Morning"+message;
}
else if (hourOfDay < 17)
{
message="Good Afternoon"+message;
}
else
{
message="Good Evening"+message;
}

document.write (message) ;
</script>

how do i display it in 'dark blue'.


<pre style="color:#003; background-color:inherit">
&lt;script language= "JavaScript"&gt;
var today = new Date();
var hourOfDay = today.getHours();
var message = " and welcome to MIS ";
if (hourOfDay &gt;=0 && hourOfDay &gt; 12)
{
message="Good Morning"+message;
}
else if (hourOfDay &lt; 17)
{
message="Good Afternoon"+message;
}
else
{
message="Good Evening"+message;
}

document.write (message) ;
&lt;/script&gt;
</pre>
HTH

PointedEars

Jan 18 '06 #3

P: n/a
DP
s'ok

i sorted it now. thanx for the help.

dev

"DP" <DP@hotmail.com> wrote in message
news:ZZ***************@newsfe7-gui.ntli.net...
that didint do anything m8?

i cant see any text now. i'm trying to display the message bit in blue.
in a web page.

thanx

devin

"Thomas 'PointedEars' Lahn" <Po*********@web.de> wrote in message
news:57****************@PointedEars.de...
DP wrote:
i've got this peice of code;

<script language= "JavaScript">
var today = new Date();
var hourOfDay = today.getHours();
var message = " and welcome to MIS ";
if (hourOfDay >=0 && hourOfDay < 12)
{
message="Good Morning"+message;
}
else if (hourOfDay < 17)
{
message="Good Afternoon"+message;
}
else
{
message="Good Evening"+message;
}

document.write (message) ;
</script>

how do i display it in 'dark blue'.


<pre style="color:#003; background-color:inherit">
&lt;script language= "JavaScript"&gt;
var today = new Date();
var hourOfDay = today.getHours();
var message = " and welcome to MIS ";
if (hourOfDay &gt;=0 && hourOfDay &gt; 12)
{
message="Good Morning"+message;
}
else if (hourOfDay &lt; 17)
{
message="Good Afternoon"+message;
}
else
{
message="Good Evening"+message;
}

document.write (message) ;
&lt;/script&gt;
</pre>
HTH

PointedEars


Jan 18 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.