1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

iFrames

Discussion in 'HTML & Website Design' started by danpadams, Jun 14, 2005.

  1. #1
    Does anyone know if there is a way to detect from the browser if iFrames are used by the browser? What I am desiring to do is to have it so that if the iFrames are used, then the scrolling is used for the sub-part of the page, if not then I will just have the whole page scroll, like with no iFrame at all.
     
    danpadams, Jun 14, 2005 IP
  2. danpadams

    danpadams Peon

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It might be better to say that iFrames might not do what I was desiring as I do not want to have actual frames, but just a section of the page with a scrollbar.
     
    danpadams, Jun 14, 2005 IP
  3. Softbrix

    Softbrix Peon

    Messages:
    83
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you should use CSS divs, the code below will add a 530px div with auto scroll

    <div class="style1" style="HEIGHT:450px; WIDTH:530px; OVERFLOW:auto">
     
    Softbrix, Jun 15, 2005 IP
    Josh and rob777 like this.
  4. Josh

    Josh Peon

    Messages:
    893
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I agree with softbrix.. just use a DIV layer to scroll, its much more browser compatible and SE friendly.


    If you need to have another page in the layer, use PHP to include it.


    Josh
     
    Josh, Jun 15, 2005 IP