font color troubles

Discussion in 'Co-op Advertising Network' started by UberSkilled, Jan 28, 2005.

  1. #1
    Hey Hey Guys, Whitey from UberSkilled.com here.

    Listen, my background colour on my page is black, and the ads you've given me have black text on them. I've tried both of these solutions:

    <?php
    //ad_network.php ads
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo "<font color = \"silver\">" . $ad_network[0] . "</font>";
    ?>

    and this one




    <?php
    //ad_network.php ads
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo "<div class = \"maint\">" . $ad_network[0] . "</div>";
    ?>

    (maint is the stylesheet class for main text - which is silver)


    I really do want to show these ads, for one obvious reason, because mine will be shown, but also ads actually make your site look professional and look like it's doing something.




    Thanks guys



    /Whitey
     
    UberSkilled, Jan 28, 2005 IP
  2. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #2
    I have mine like this:

    echo "<DIV align='center'><DIV class='style26'>$ad_network[0]&nbsp&nbsp $ad_network[1]&nbsp&nbsp $ad_network[2]&nbsp&nbsp $ad_network[3]&nbsp&nbsp $ad_network[4]</div>";


    Shows 5 centered ads

    The problem with your code is that you are closing your " in the wrong way.
     
    fryman, Jan 28, 2005 IP
  3. UberSkilled

    UberSkilled Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks FryMan, but nope :(.


    I tried the code you said (obviously replacing your class with mine) and it didnt work.

    So i tried this one:


    echo "<DIV align='center'><font color = 'silver'>$ad_network[0]&nbsp&nbsp $ad_network[1]&nbsp&nbsp $ad_network[2]&nbsp&nbsp $ad_network[3]&nbsp&nbsp $ad_network[4]</div></font>";
    ?>


    Same thing, but with the font tag under silver. Still didn't work. when i view the source of my page after its uploaded, the tags still there, but it just doesnt do anything.


    http://www.UberSkilled.com/index.php#bads
     
    UberSkilled, Jan 28, 2005 IP
  4. Smyrl

    Smyrl Tomato Republic Staff

    Messages:
    13,740
    Likes Received:
    1,702
    Best Answers:
    78
    Trophy Points:
    510
    #4
    I have read people are using span tag to control text and background color.

    Shannon
     
    Smyrl, Jan 28, 2005 IP
  5. rtheodorow

    rtheodorow Peon

    Messages:
    129
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can use a <SPAN> or <DIV> tag for this. However you have to assign a class to the "A" link value for these. For example:

    DIV A:LINK { Your styles here }
    DIV A:VISITED { Your styles here }
    DIV A:HOVER { Your styles here }
     
    rtheodorow, Jan 28, 2005 IP
  6. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #6
    What does your css say?
     
    fryman, Jan 28, 2005 IP
  7. rtheodorow

    rtheodorow Peon

    Messages:
    129
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Why do you need to know that? You can put whatever styles in the brakets you want....are you talking to me fryman?
     
    rtheodorow, Jan 28, 2005 IP
  8. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #8
    lol, no, to Uberskilled, I guess something is wrong with his css :D
     
    fryman, Jan 28, 2005 IP
  9. UberSkilled

    UberSkilled Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    my styles are as follows:


    <style type="text/css">
    .maint { color: silver; font-size: 85%; }
    .menut { color: silver; font-size: 95%; }
    .head0 { color: silver; font-size: 105% }
    .head1 { color: silver; font-size: 125%; }
    .head2 { color: silver; font-size: 145%; }
    .sig { color: silver; font-size: 105%; font-style: italic; }
    .highlight { background-color: orange; color: purple; font-size: 95%; }
    .sideads { color: yellow; font-size: 73%; }
    .copy { color: silver ; font-size: 75%; }
    .smallemail {font-size: 75%; }
    body { background-color: #000000; }
    a { color : silver; }
    </style>



    :p. I tried the span tag, nope. :(

    im trying to make it maint (as defined above)


    :p



    /Whitey
     
    UberSkilled, Jan 29, 2005 IP
  10. UberSkilled

    UberSkilled Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I had the idea for the digitalpoint admins to update the network.php file so that you can set up the font color as well as the bgcolor.

    currently you can set:

    http://ads.digitalpoint.com/network.php?color=000000&b=http://www.UberSkilled.com/

    background color is $color
    and
    host is $b
    if they had $fcolor to echo into the font color spot.

    in the actual ad generating code, it has <font size = "-1"> which is why it is canceling out my <font> tag i'd say. they could change it to

    <?php
    $fcolor = "000000"
    if (isset($_GET['fcolor']))
    {
    $fcolor = $_GET['fcolor'];
    }
    <font size = "-1" color = "#<?php echo "$fcolor" ?>">


    something like that would make the script much more customizable, wouldn't it?


    /Whitey
     
    UberSkilled, Jan 29, 2005 IP