PDA

View Full Version : Simple Request



[lhomme]
March 20th, 2002, 20:17
Its simple but I'm too ignorant to see it:

How can I change the color of the time date on my page to a white? (Its on the right side of the black bar - highlight to see it) I've been trying for over an hour and everything the tutorial said to do merely causes the entire thing to disappear. :mad:

Thanks.

http://www.acafe.net/acafe/

byrdgirl13
March 20th, 2002, 20:33
like this:

< SCRIPT LANGUAGE="JavaScript" >
< !--
d = new Date()
dateText = "< font color='ffffff' >"

what you had was this:

< SCRIPT LANGUAGE="JavaScript" >
< !--
d = new Date()
dateText = ""

Dusty
March 20th, 2002, 20:35
Yeah, or you could just do it the simple way and not involve the JavaScript at all. Right after:
<td align="right" width="300">

You could add:
<font color="#FFFFFF">

And then right before:
</td>

You could put:
</font>

i.e.

<table width="770" height="10" border="0">
<tr>
<td align="left" width="470">&amp;nbsp;</td>
<td align="right" width="300">
<font color="#FFFFFF">
<script LANGUAGE="JavaScript">
<!--
...script here...
//-->
</SCRIPT>
</font>
</td>
</tr>
</table>

[lhomme]
March 20th, 2002, 20:47
Neither of them seem to work. :confused:

Dusty
March 20th, 2002, 21:18
Both work, that means the problem must be coming from somewhere else. Tell me, nothing in your stylesheet is overriding the font colors, is it? I'd look there first, that's probably the cause.

[lhomme]
March 20th, 2002, 21:32
Sigh - I can't remember when I last felt so stupid... :o

You're right.

meow
March 20th, 2002, 21:36
Don't mix CSS and HTML text formatting. It's bad for you. ;)

In fact, don't mix CSS and presentational HTML for anything. Browsers handle it differently and it can get pretty messy.