Need help with link colors

Discussion in 'HTML & Website Design' started by ronnyb, Jun 29, 2005.

  1. #1
    On one of my pages i am extracting the latest forumposts to a .php frontpage, but the ting is that the latest forumposts links is blue, and the background color of my page is blue. ( You can see it on the left side of www.marketingpatch.com )

    Anyone that can help me make these links white ?

    / Ronny
     
    ronnyb, Jun 29, 2005 IP
  2. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #2
    site wouldn't load for me... at least not in a reasonable amount of time.

    The forum software should have an area to configure your colors, if not just add a css style declaration:
    a { color: #FFFFFF; }
    PHP:
    or I believe a allows a style declaration inline:
    <a href="blah" style="color: #FFFFFF">link</a>
    PHP:
     
    nevetS, Jun 29, 2005 IP
  3. ronnyb

    ronnyb Well-Known Member

    Messages:
    856
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Thanks, there is some issues with the server, it should be working normally soon.

    The code i use to extrackt these latest forum posts links are:

    <script type="text/javascript" src="http://www.marketingpatch.com/forums/external.php?type=js"></script><br>
    &nbsp;<script language="" type="text/javascript">
    <!--
    for (i = 0; i < 5; i++)
    {
    document.writeln("<a href=\"http://www.marketingpatch.com/forums/showthread.php?threadid="+threads[i].threadid+"\">"+threads[i].title+"</a><br /> - by: "+threads[i].poster+"<br />");
    }
    //-->
    </script>
    PHP:
     
    ronnyb, Jun 29, 2005 IP
  4. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Change the following line in your code:
    document.writeln("<a href=\"http://www.marketingpatch.com/forums/showthread.php?threadid="+threads[i].threadid+"\" style=\"color:#FFFFFF\">"+threads[i].title+"</a><br /> - by: "+threads[i].poster+"<br />");
    
    Code (markup):
    The important piece is the addition of:
    style=\"color:#FFFFFF\"
     
    nevetS, Jun 29, 2005 IP
  5. ronnyb

    ronnyb Well-Known Member

    Messages:
    856
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    170
    #5
    Excellent, thank you very much
     
    ronnyb, Jun 29, 2005 IP