473,387 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to change font colour

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
3 1636
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Louise | last post by:
Hi I have written an HTML pages which does not have any colour specifying tags as far I know. When I view this in an Microsoft internet explorer browser it appears with a white background and...
14
by: Viken Karaguesian | last post by:
Hello all, It stinks being a newbie! One thing that I'm not sure about with CSS is: where is the "proper" place to put font attibutes? This has me a little confused. Take the below style sheet...
4
by: ACaunter | last post by:
Hi there, I was wondering if there was a way to change the font color of the text in the title bar... by default the title bar is that dark blue faiding into light blue and it has white text......
3
by: Simon Gare | last post by:
Hi, trying to hide zero values by changing the colour of the font, problem is it is still printing in a light grey colour? Code below but cant work out where it is going wrong. <td...
0
by: Badino | last post by:
Hi, Can someone tell me what to put in this code so that if a user selects 0 (Black) then make the font white (0) as my default colour is black on my Excel spreadsheet. Private Type...
3
by: Johny | last post by:
I use PIL to write some text to a picture.The text must be seen wery clearly. I write the text to different pictures but to the same position. As pictures maybe different, colour, in the...
0
by: Johny | last post by:
I use PIL to write some text to a picture.The text must be seen wery clearly. I write the text to different pictures but to the same position. As pictures maybe different, colour, in the...
3
by: DNolan | last post by:
Hello, I was wondering if anyone could help me. I have an access form with tabbed pages on it. I would like the colour of the tab name to change when a user inputs information into the fields on...
3
by: Phil Stanton | last post by:
Correct me if I'm wrong, but is it impossible to change the font in a report field when in print preview (MDE database) or can it only be done in design view in the MDB database. Part of my...
6
by: gavy7210 | last post by:
hello i am using struts 1.2,Eclipse Platform Version: 3.4.2,mySql 5.0.1,jdk 1.5.. i have a login form(jsp) in which a user logs in,in case he doesnt enter his username and/or password an error...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.