Results 1 to 6 of 6

Thread: Iframes 'issue'.

  1. #1
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframes 'issue'.

    I'd really like a script that allows me to open a certain area of a page inside an iframe. This would be doable with anchors, but as the pages aren't my own I can't control what to show.

    Anyone that could help?

  2. #2
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    798
    Thanks
    86
    Thanked 2 Times in 2 Posts

    Default

    This could help:

    Code:
    <iframe src="plageyouwishtoshowintheframe.html" name"content" height="20" width="20" scrollable="yes" border="0">

  3. #3
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    that lets me show an other page on my page yes, but I need to show a certain area of the destination page inside the Iframe.

    So basically, I'd need a script that scrolls the destination page to wherever I want it automaticly.

  4. #4
    Join Date
    Dec 2006
    Location
    Raleigh, NC
    Posts
    15
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    You need the javascript function, window.scroll(x, y).

    For example:

    myIframe.scroll(0, 150);

    See if that gets you going. Otherwise hit me back for more of an explanation.

  5. #5
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sounds like what I need

    I'll give it a go, and come back if I need further guidance

    Thanks!

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,926
    Thanks
    43
    Thanked 3,190 Times in 3,154 Posts
    Blog Entries
    12

    Default

    If this is an external page, as you say, you will have problems. See:

    http://www.dynamicdrive.com/forums/s...ead.php?t=3462
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •