View Full Version : Trouble changing font color
BackYard
07-20-2002, 01:57 AM
<html>
<head>
<title>Intro Screen...</title>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<div id="splashcontainer" style="position:absolute;width:350px;"></div>
<layer id="splashcontainerns" width=450></layer>
<script>
the above script is the beginning of a splash page for my website.
I have tried to change the color of the font XX number of times and it remains black.
I have a light colored background on the page itself.
Any help?
If you need more of the script I can show it but there is no font color codes embedded in it.
I got this one from Dynamic Drive...along with others.All have worked, this one does, just want a color change.
Thanks
bacterozoid
07-20-2002, 02:02 AM
You are trying to change the text color of the entire page...you have the page online somewhere?
I'm not sure I understand what your problem is, but something in your DHTML script could be causing the text to be black or whatever, so check that.
You could try using the normal HTML code for text:
<font color=#FFFFFF>
Just don't end the tag until right before the </body> tag and make sure there aren't any font close tags anywhere else that would screw it up. Also, what is the URL for the script you are using?
BackYard
07-20-2002, 02:09 AM
hmmm, nice quick answer but alas you might have to go look.
bacterozoid
07-20-2002, 02:14 AM
Ah, ok. I think I may know...maybe. You may need to look through your script and try to find a hexadecimal code or the word 'black' or another color word. I have a DHTML script that i need to change the colors within the script for it to work.
bacterozoid
07-20-2002, 02:28 AM
Here, this part of your code:
var splashmessage=new Array()
var openingtags='<font face="Casque OpenFace" size="8">'
splashmessage[0]='Welcome to the Unofficial Website for the Town of Winchendon, Mass.'
splashmessage[1]='Here You Will Find…'
splashmessage[2]='The Portal To The BackYard Fence Forum'
splashmessage[3]='Links to the MasterPlan and Town Charter'
splashmessage[4]='Local Links, News and Weather'
splashmessage[5]='The DogPound Is Back
splashmessage[6]= 'Coming Soon... The Bylaws of Winchendon'
splashmessage[7]='So...Come On In and Visit'
splashmessage[8]='Please stand by...'
var closingtags='</font>'
Assuming you haven't dinked with it any, simply add a color tag to the font there. (color=#XXXXXX)
BackYard
07-20-2002, 02:40 AM
I have dinked with it and it won't show up now...I'll try that once I fix this....thnx
bacterozoid
07-20-2002, 02:41 AM
lol, stinks, eh? dink with something and make it not work...i do that a lot myself :) welcome
BackYard
07-20-2002, 04:38 AM
Bacterozoid.
thnx I figured it out.
You pushed in the right direction.
code before -----
var splashmessage=new Array()
var openingtags='<font face="Casque OpenFace" size="8">'
code after -----
var splashmessage=new Array()
var openingtags='<font face="Casque OpenFace" size="8" color=#0000FF>'
I added it to the message part of the splash screen. thnx for the help...
:thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.