Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2007
    Posts
    25
    Tokens
    0

    Default Hyperlink Question

    I need a code that when you click a button, It scrolls down to a certain part of the page. The only issue is, The part of the page that it needs to scroll down to is in a iframe.

    Anyone know how i can get this working?

  2. #2
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Add just before the iframe
    Code:
    <a name="Iframe"></a>
    and then to hyper link it to the Iframe it would be:
    Code:
    <a href="#Iframe">Iframe</a>
    .

  3. #3
    Join Date
    Nov 2007
    Posts
    25
    Tokens
    0

    Default

    Thanks, But i need it so when you click on a link outside the iframe it goes to a certain part in the iframe. Eg half way down the page of the iframe.

  4. #4
    Join Date
    Jan 2008
    Location
    london
    Posts
    185
    Tokens
    0

    Default

    add my msn ill do it lol
    [email protected]
    yo

  5. #5
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    could you not add it in the iframe page? once its loaded it should read from that aswell right?

    its just like an anchor isnt it?

  6. #6
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Put this in the page that is in the iframe where you want to link to.
    HTML Code:
    <a name="frame"></a>
    Then use this link (out side the iframe) to link to it.
    HTML Code:
    <a href="pagenamehere.html#frame">lololololol</a>
    Quote Originally Posted by WoodBerry View Post
    add my msn ill do it lol
    [email protected]
    Thats realy not needed
    Lets set the stage on fire, and hollywood will be jealous.

  7. #7
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Insert a div into your iframe.

    <iframe id="pornframe" name="pornframe" src="porn.html"></iframe>

    Inside porn.html

    <div name="porndiv">
    -- Insert whatever
    </div>

    Link:

    http://www.website.com/porn.html#porndiv

Posting Permissions

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