3$ who can edit colour of this text

Discussion in 'PHP' started by nevret2, Jan 29, 2009.

  1. #1
    <?php
    $file = $_GET['file'];
    $url = "/popup.php?file=".$file;
    echo "", "<a href=# onClick=popitup('", $url, "')>", "Download", "</a>";
    ?><
    Code (markup):

    you see where it says ' Download'

    i want it have red colour, can you please put the code in it so it will show download text in red?

    i have 3$ and want to give it to u if u want
     
    nevret2, Jan 29, 2009 IP
  2. zat88

    zat88 Banned

    Messages:
    43
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <?php
    $file = $_GET['file'];
    $url = "/popup.php?file=".$file;
    echo "", "<a href=# onClick=popitup('", $url, "')>", "<font color="red">Download</font>", "</a>";
    ?>
     
    zat88, Jan 29, 2009 IP
  3. saadahmed007

    saadahmed007 Admínistratör

    Messages:
    5,272
    Likes Received:
    869
    Best Answers:
    0
    Trophy Points:
    380
    #3
    <?php
    $file = $_GET['file'];
    $url = "/popup.php?file=".$file;
    echo "", "<a href=# onClick=popitup('", $url, "')>", "<font color='red'>Download</font>", "</a>";
    ?>
     
    saadahmed007, Jan 29, 2009 IP
  4. yoavmatchulsky

    yoavmatchulsky Member

    Messages:
    57
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #4
    the <font> element is obsolete.

    echo '<a href="#" onclick="popitup(\'' . $url . '\'); return false;" style="color: red;">Download</a>';
     
    yoavmatchulsky, Jan 29, 2009 IP
  5. Xexiu

    Xexiu Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Haha this was funny :p. Or you can try to edit the templates that the php calls.
    I have some php files that uses some templates, such as header and footer, and its much more better to edit the templates, before editing the php files ;)
     
    Xexiu, Jan 29, 2009 IP
  6. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thnx guys it works
     
    nevret2, Jan 29, 2009 IP
  7. Laceygirl

    Laceygirl Notable Member

    Messages:
    4,617
    Likes Received:
    188
    Best Answers:
    1
    Trophy Points:
    250
    #7
    Instead of red you should choose the color of red you want such as #FF0000,#F62217,#E41B17,#F62817,E42217, or #C11B17


    <?php
    $file = $_GET['file'];
    $url = "/popup.php?file=".$file;
    echo "", "<a href=# onClick=popitup('", $url, "')>", "<font color="#FF0000">Download</font>", "</a>";
    ?>
     
    Laceygirl, Jan 29, 2009 IP
  8. xcrox

    xcrox Banned

    Messages:
    232
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    font tag is decrypted use span or div with style attribute.!
     
    xcrox, Jan 30, 2009 IP