How can i place This ad Code in my website ?

Discussion in 'PHP' started by SidhuZ, Oct 24, 2012.

  1. #1
    i want to place the ad code of 146 x 1896px.
    Like This s.jpg
    This is the ad code that i want to place:
    <iframe allowtransparency="1" frameborder="0" height="1896" id="plwpr4548950879dadaf80a2.56841583" scrolling="no" src="http://widget.plugrush.com/imgtake.com/1at8" width="146"></iframe>
    In attached Filesis .php file Where the code will be placed please tell me how or where or Do this for me..
    THANKX in Advance....
     

    Attached Files:

    SidhuZ, Oct 24, 2012 IP
  2. ROOFIS

    ROOFIS Well-Known Member

    Messages:
    1,234
    Likes Received:
    30
    Best Answers:
    5
    Trophy Points:
    120
    #2
    I'd use CSS for this. Try implementing a CSS hook in the html in the <div> section relative to that position.

    eg: <div id="advert">

    in your .css file add the positioning coordinates (eg below), remembering though to emphasize the (%) percentage coordinate instead of the px (pixel) placement to accommodate for different screen resolutions

    
    #advert
    {
    position:relative;
    left: [B][I][COLOR="#FF0000"]ADD YOUR COORDINATES HERE![/COLOR][/I][/B] 
    }
    Code (markup):
    see: w3schools.com/css/css_positioning.asp
    for positioning code examples.

    Hope this helps :)






    ROOFIS :cool:
     
    ROOFIS, Oct 27, 2012 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    Or just decide where you want the image to be (that's up to you - we can't tell you where you want it) and insert this line at that point.

    
    echo '<iframe allowtransparency="1" frameborder="0" height="1896"  id="plwpr4548950879dadaf80a2.56841583" scrolling="no"  src="http://widget.plugrush.com/imgtake.com/1at8"  width="146"></iframe>';
    
    PHP:
     
    Rukbat, Oct 27, 2012 IP
  4. sven31

    sven31 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    use css for this...
     
    sven31, Oct 28, 2012 IP
  5. satish68

    satish68 Greenhorn

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #5
    include it in html code that is anywhere after <head> or <body> tag.
     
    satish68, Oct 29, 2012 IP