embedding only part of an external web page / positioning within an iframe

Discussion in 'HTML & Website Design' started by parkaboy, Nov 11, 2007.

  1. #1
    I would like to embed a webpage (from another domain) in my own page, but not show the top 10% of that target page, which has a header image that would clash with my site. What I want is like an iframe of 90% height of the target page, only instead of the bottom 10% getting cut off, I would want the top 10% to be cut off (needless to say I'd be opting to shut off scrolling in this instance).

    I'm certain this could be done with javascript or dhtml. All I want to do is have the iframe scroll down about 10% before the target site is displayed in the iframe.
     
    parkaboy, Nov 11, 2007 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can "jump" to a part of the page using javascript but the other 10% would be there if the user scrolled up (of cause you can make it harder by not having scroll bars but they can still scroll using the cursor)

    The only way to actually remove the 10% is by doing screenscrapping using a serverside script
     
    AstarothSolutions, Nov 12, 2007 IP
  3. parkaboy

    parkaboy Peon

    Messages:
    198
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's exactly what I wanted to do!!! What's the javascript for doing that??

    (No, I don't mind that the user can scroll up; I just want them to see the middle of the page where the offer is, rather than the top which has a lot of white space.)
     
    parkaboy, Nov 14, 2007 IP