Help with frame

Discussion in 'HTML & Website Design' started by mvhs, Jan 5, 2007.

  1. #1
    I just got this geo targeting script (site.com/ad.php) to switch my ads from ypn/adsenes and I'm trying to replace the current static ads with this script, using something like a frame. How would I do this with a (height 60 width 234) ad? I tried using "frame src" but it puts the ad inside a frame, and its very obvious its framed. Also I cannot use php include because I'm using a CMS. How can I include the AD without changing the current appearance?
     
    mvhs, Jan 5, 2007 IP
  2. eXe

    eXe Notable Member

    Messages:
    4,643
    Likes Received:
    248
    Best Answers:
    0
    Trophy Points:
    285
    #2
    <frame src="ad.php" frameborder="0" height="60" width="234">
    Code (markup):
     
    eXe, Jan 5, 2007 IP
  3. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you're using a CMS, it's probably running PHP anyway. Try taking a peek under the hood and see what's powering it.
     
    Dan Schulz, Jan 6, 2007 IP
  4. CBDealer

    CBDealer Guest

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    exe is very close to the solution. But since you can't size or float a frame element (that's all done in the framset tag), you'll need to use an iframe:

    <iframe src="ad.php" frameborder="0" height="60" width="234"></iframe>
    HTML:
    You can use positioning tags inside the iframe tag (align, etc.) or you can position with external block level elements.
     
    CBDealer, Jan 6, 2007 IP
  5. eXe

    eXe Notable Member

    Messages:
    4,643
    Likes Received:
    248
    Best Answers:
    0
    Trophy Points:
    285
    #5
    You're right:eek: iframe not frame, lol.
     
    eXe, Jan 6, 2007 IP