Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

font white

Status
Not open for further replies.

cooldisk2005

Technical User
Aug 3, 2005
119
US
All,
I have the following code:

<!-- v-linkGEAR Code by -v -->
<script language="JavaScript"> var enabled = 'no'; </script>
<script language="JavaScript" src="<script language="JavaScript"> if (enabled == 'no') {
document.write("<A HREF=\" Links:</A> Click to View or Add Links. <a href=\" align=middle border=0 width=16 height=14 src=\"}</script>
<noscript>
<A HREF=" Links:</A> Click to View or Add Links. <a href=" align=middle border=0 width=16 height=14 src="<!-- ^- End linkGEAR Code -^ -->

I need to make a part of this come up on my page as white font, but I can't do it. I have tried <font color="#FFFFFF"> in several places, but nothing is working.

The font I want to become white is this:
Hobgoblin-Clothing Links:</A> Click to View or Add Links.

How can I do this?

Can someone please help me?

Thanks in advance.
 
Maybe this will work:
Code:
<script language="JavaScript"> if (enabled == 'no') {
  document.write("<A HREF=\"[URL unfurl="true"]http://htmlgear.tripod.com/link/control.link?u=colininuk&i=8&a=render&style=list\"[/URL] [COLOR=red][b]style=\"color:#fff;\"[/b][/color]>Hobgoblin-Clothing Links:</A>  [COLOR=red][b]<span style=\"color:#fff;\">[/b][/color]Click to View or Add Links.[COLOR=red][b]</span>[/b][/color] <a href=\"[URL unfurl="true"]http://htmlgear.lycos.com/specs/link.html\"><img[/URL] align=middle border=0 width=16 height=14 src=\"[URL unfurl="true"]http://htmlgear.lycos.com/img/log/lk_i_gear.GIF\"></a><BR><P>");[/URL]
}</script>

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
The easiest way would be, if all this is enclosed in another element, to simply add style for that element in css. However, from what you gave us, this is not apparent, although I am pretty sure there is one. You could also opt to make all links on the page white (probably not what you want) through css or simply adding style="color: white;" to all your links. Similarly, you could add a class to them and define the color in the class, however all these are cumbersome solutions compared to the first -- using dependecies.
 
BabyJeffy,
I tried your approach but it didn't work.

Any other suggestions guys???
 
I tried your approach but it didn't work
Well, the problem may very well be somewhere else in your code then.

To test this theory, I made a very tiny test page using the code that I posted. I removed the check for the "enabled" variable. Here is the test page:
Code:
<html><head><title>Test</title></head><body style="background-color:black;">

<script language="JavaScript">
document.write("<A HREF=\"[URL unfurl="true"]http://htmlgear.tripod.com/link/control.link?u=colininuk&i=8&a=render&style=list\"[/URL] style=\"color:#fff;\">Hobgoblin-Clothing Links:</A>  <span style=\"color:#fff;\">Click to View or Add Links.</span> <a href=\"[URL unfurl="true"]http://htmlgear.lycos.com/specs/link.html\"><img[/URL] align=middle border=0 width=16 height=14 src=\"[URL unfurl="true"]http://htmlgear.lycos.com/img/log/lk_i_gear.GIF\"></a><BR><P>");[/URL]
</script>

</body></html>
Please copy/paste the stand-alone html page I have included and test it yourself (I used FF on windows). If it doesn't show you a black page with white text on it... then the problem is likely your browser.

I would be very interested in the results of your test!

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Ok that worked somewhat:)

Here is the page:

You will see part of the text is white, but I want the top part to be white. Here is the text you will see when you get to that page:

Hobgoblin-Clothing Links:
Hits Links
0 No Links
-


Hobgoblin-Clothing Links: Click to View or Add Links.


I need this part to be white:
Hobgoblin-Clothing Links:
Hits Links
0 No Links

Thanks,
 
So... I suggest you modify the code I posted to make it happen.

I was careful to make the changes as minor as possible (from your original post) and even bolded the changes I made. Maybe you can look at the changes I made and attempt to reverse-engineer a solution that is closer to what you desire.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top