Need some help from my friends about show url banners

Discussion in 'PHP' started by TheSyndicate, Sep 7, 2011.

  1. #1
    My code is messed up, i need to show banners next to each other in a banner rotate that i already have in my WordPress but i forget my code how to show url banners. I already my banners on a server so all i need is a code to display them.


    <div class="banner"><a href="http://www.mydomain/random-ads-300x250.php" target="_blank">
    <div style="float:right;">
    <div class="banner"><a href="http://mydomain/random-ads-300x250.php" target="_blank">
    </div>
    
    PHP:
     
    TheSyndicate, Sep 7, 2011 IP
  2. awood969

    awood969 Member

    Messages:
    186
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    40
    #2
    That code is quiet messy, I'm not not much of a Wordpress guru but this is how I would have done it;

    [COLOR=#339933]<[/COLOR]div [COLOR=#000000][B]class[/B][/COLOR][COLOR=#339933]=[/COLOR][COLOR=#0000FF]"banner" style="position:relative;float:left"[/COLOR][COLOR=#339933]><[/COLOR]a href[COLOR=#339933]=[/COLOR][COLOR=#0000FF]"http://www.mydomain/random-ads-300x250.php"[/COLOR] target[COLOR=#339933]=[/COLOR][COLOR=#0000FF]"_blank"[/COLOR][COLOR=#339933]></div>[/COLOR][COLOR=#339933]
    [/COLOR][COLOR=#339933]<[/COLOR]div [COLOR=#000000][B]class[/B][/COLOR][COLOR=#339933]=[/COLOR][COLOR=#0000FF]"banner" style="position:relative;float:right;"[/COLOR][COLOR=#339933]><[/COLOR]a href[COLOR=#339933]=[/COLOR][COLOR=#0000FF]"http://mydomain/random-ads-300x250.php"[/COLOR] target[COLOR=#339933]=[/COLOR][COLOR=#0000FF]"_blank"[/COLOR][COLOR=#339933]></div>[/COLOR]
    Code (markup):
    That is assuming that your not setting the position attribute in your CSS.

    Hope this helps!
    Andrew
     
    awood969, Sep 9, 2011 IP
  3. TheSyndicate

    TheSyndicate Prominent Member

    Messages:
    5,410
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    365
    #3
    sorry nothing to do with WordPress should have made it more clear. It is suppose to be posted in a banner rotators. In the url i already have banner rotating.
    I just need to show the banner located at these locations and have two of them.
    I tried your code but it did not show any banners.
     
    TheSyndicate, Sep 9, 2011 IP