Java Script: How to change Font Color ?

G

Guest

Hi, I have a web host a geocities which provided
me with a java script that has the "date" on it.
However, the data is a black font, which does
not show up on my purple side border. Can you please
show me how to change this script below so that
that date is a "white font" thankyou, ric
<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(lmonth + " ");
document.write(date + ", " + year);
// End -->
</SCRIPT>
 
S

Stefan B Rusynko

Nothing to do w/ the script content
- it just generates content (thru the document.write)
Wrap the script in a font color tag
<font color="white">
entire script goes here
</font>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi, I have a web host a geocities which provided
| me with a java script that has the "date" on it.
| However, the data is a black font, which does
| not show up on my purple side border. Can you please
| show me how to change this script below so that
| that date is a "white font" thankyou, ric
| <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(lmonth + " ");
| document.write(date + ", " + year);
| // End -->
| </SCRIPT>
|
 
M

MD Websunlimited

I would recommend that a <span style="color: white"> or <span class="dateClass" >Script Goes Here </span> be used with the latter
being the preferable method using a CSS Selector.

<style type="text/css">
..dateClass {
color: White;
}
</style>


<font> is a depreciated HTML tag.
 
M

Murray

That would be deprecated. As far as I know, deprecated has not been
depreciated yet! 8)

--
Murray
--------------
MVP FrontPage


MD Websunlimited said:
I would recommend that a <span style="color: white"> or <span
class="dateClass" >Script Goes Here </span> be used with the latter being
the preferable method using a CSS Selector.

<style type="text/css">
.dateClass {
color: White;
}
</style>


<font> is a depreciated HTML tag.

--
Mike
http://www.websunlimited.com
FrontPage Add-in
MVP FrontPage '97 - '02

Stefan B Rusynko said:
Nothing to do w/ the script content
- it just generates content (thru the document.write)
Wrap the script in a font color tag
<font color="white">
entire script goes here
</font>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi, I have a web host a geocities which provided
| me with a java script that has the "date" on it.
| However, the data is a black font, which does
| not show up on my purple side border. Can you please
| show me how to change this script below so that
| that date is a "white font" thankyou, ric
| <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(lmonth + " ");
| document.write(date + ", " + year);
| // End -->
| </SCRIPT>
|
 
G

Guest

Hello, I'm sorry I don't understand the answers, can you please write the
answer
Step by Step, I don't know how to "wrap" in a tag font, or something like
that
or do the other answer, can you guide me step by step, or show me how the
who script should look. Thankyou.

MD Websunlimited said:
I would recommend that a <span style="color: white"> or <span class="dateClass" >Script Goes Here </span> be used with the latter
being the preferable method using a CSS Selector.

<style type="text/css">
..dateClass {
color: White;
}
</style>


<font> is a depreciated HTML tag.

--
Mike
http://www.websunlimited.com
FrontPage Add-in
MVP FrontPage '97 - '02

Stefan B Rusynko said:
Nothing to do w/ the script content
- it just generates content (thru the document.write)
Wrap the script in a font color tag
<font color="white">
entire script goes here
</font>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi, I have a web host a geocities which provided
| me with a java script that has the "date" on it.
| However, the data is a black font, which does
| not show up on my purple side border. Can you please
| show me how to change this script below so that
| that date is a "white font" thankyou, ric
| <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(lmonth + " ");
| document.write(date + ", " + year);
| // End -->
| </SCRIPT>
|
 
M

MD Websunlimited

<span style="color: white" >
<script>
...
...
...
</script>
<span>

Susutea said:
Hello, I'm sorry I don't understand the answers, can you please write the
answer
Step by Step, I don't know how to "wrap" in a tag font, or something like
that
or do the other answer, can you guide me step by step, or show me how the
who script should look. Thankyou.

MD Websunlimited said:
I would recommend that a <span style="color: white"> or <span class="dateClass" >Script Goes Here </span> be used with the latter
being the preferable method using a CSS Selector.

<style type="text/css">
..dateClass {
color: White;
}
</style>


<font> is a depreciated HTML tag.

--
Mike
http://www.websunlimited.com
FrontPage Add-in
MVP FrontPage '97 - '02

Stefan B Rusynko said:
Nothing to do w/ the script content
- it just generates content (thru the document.write)
Wrap the script in a font color tag
<font color="white">
entire script goes here
</font>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi, I have a web host a geocities which provided
| me with a java script that has the "date" on it.
| However, the data is a black font, which does
| not show up on my purple side border. Can you please
| show me how to change this script below so that
| that date is a "white font" thankyou, ric
| <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(lmonth + " ");
| document.write(date + ", " + year);
| // End -->
| </SCRIPT>
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top