Results 1 to 5 of 5

Thread: HELP iframe scroller and links

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

    Default HELP iframe scroller and links

    1) Script Title: IFRAME scroller

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...e-scroller.htm

    3) Describe problem:
    Please, help. I have loaded your Iframe scroller in mainFrameA of FrSet A.
    How can I address to the same mainFrameA a link to page C that opens through NavBar in mainFrameB of FrSet B?
    Here the map: SITE: FrSetA.htm -> FrSetB.htm -> HOME -> FOLDER -> PageC.htm.
    Is it possible?
    Thank you for your help.
    jpri

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Use the target attribute of the link to target a named frame. This will usually work no matter where that frame is (be it an iframe or a frameset frame, above or below the link) as long as the name is unique and the frame exists when the link is clicked, it should work. Example:

    HTML Code:
    <iframe name="mainFrameA" . . .
    OR:

    HTML Code:
    <frame name="mainFrameA" . . .
    with:

    HTML Code:
    <a href="pageC.htm" target="mainFrameA">Page C</a>
    - John
    ________________________

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

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

    Default

    Thank you, John. I'm afraid I was not clear with my question.

    The problem is that PageC and the others I would like to link in the scroller are structured to appear WITHIN FrSetB and therefore fit badly in mainFrameA.
    I.e., FrSetB is the main part of the site, with navbar, links etc., while FrSetA with the news scroller is an opening page that only gives access to two different version of the site.

    In sythesis, from the scroller links (in FrSetA) I would open a different frameset (FrSetB) which in turn shows in its mainFrameB PageC or D etc.

    I hope to have better explained myself. And thank you again.
    jpri

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The principal is still the same. Let's say you want a new frameset to open in an existing frame. Your link will have the href of the new frameset, and its target will be the existing frame.

    If, on the other hand, you want a link inside a frame to open up in the window, obliterating everything else, target _top:

    HTML Code:
    <a href="new_frameset.htm" target="_top">New Frameset</a>
    The src attributes of the frames on the new_frameset.htm will determine what is shown in its frames. You can have several versions of the new frameset, each with its own name and configured to show a particular set of sub-pages in its frames.
    - John
    ________________________

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

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

    Default

    I'll follow your suggestion. Thank you again.

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
  •