Results 1 to 8 of 8

Thread: How do I get two frames to scroll off one scroll bar i.e. act as if one page

  1. #1

    How do I get two frames to scroll off one scroll bar i.e. act as if one page

    I have a page which I have created two frames in. With SCROLLING=AUTO when the page is two small, scroll bars come up for each frame. I would like to make it so there is one scroll bar on the right side, and both frames react to this single scroll bar. Is this possible? Can it be done with HTML, Java, or JavaScript? Help!!
    Last edited by diades; 23rd April 2006 at 11:01.

  2. #2
    Moderator
    Christmas Island Kool Dude's Avatar
    Join Date
    Jul 1999
    Location
    Sittin' on the dock of the bay...
    Posts
    406
    I don't think it is possible.. I've seen the question asked before though so I'll try and see if someone ever found a way.. if so I'll post it for ya..
    :kooldude:
    I am soooooo Kool!

  3. #3
    Administrator caislander's Avatar
    Join Date
    May 2000
    Location
    Just a bit too far north of the guy with the cleaning chamois
    Posts
    8,317

    Scroll Bar(s)

    Hi,

    I'm with Kool I don't think it is possible, as each frame represents a separate page I just don't think you can controls 2 pages worth of content with 1 scroll bar..

    Sorry
    :caislogo:
    From The Land Of SunShine, Surf & Code :cool:

  4. #4

    why frames?

    Hi folks,

    If you want both frames to move as one, why frame them seperately? Perhaps laying out a table within a framed page would give you the effect you're looking for.

    Just a thought...

    Good Luck,

    Jim
    :gzazlogo:
    "Apparently I'm insane, but one of the happy kinds!"- Wally

  5. #5
    Moderator
    Canada jonsteele's Avatar
    Join Date
    Jul 2000
    Location
    Toronto, Canada
    Posts
    1,749

    I think using FrontPage will help...

    gzazjim has a good point but you will need to edit each page separately if you want to make a change in just the one part that's the same on every page. FrontPage has a "shared borders" function that does exactly what you need. Not everyone has FrontPage but if someone can find how to use this without FrontPage, it would help you.

    Jon

  6. #6
    Member
    Join Date
    Jul 2000
    Location
    Israel the greatest place on world
    Posts
    163

    Again way frames

    When you use frames you need to add another file and the importent thing in frames it that each one will act seperatly so why to use frames if you need them to work together use simple table which seperate her to two <td> and one <tr> make them width=100% or how much you need and in each <td> put the file contents it will work for you if you have a problem send my e-mail and your file and i will write it for you

  7. #7
    Tables will not work for what I am doing, I am using buttons that line up exactly with the background. Even if you set an absolute width for the <TD> tag or the <TABLE> tag, the images move down slightly when sizing the window too slim. With frames it works perfectly, but I don't want a scrollbar on the left frame screwing up my page. I know there is a way to do it, I just have to find it. Maybe I'll try msft frontpage.

  8. #8
    Yes deltsig... it's possible and sometimes necessary to have two frames scroll at once. Sometimes tables are not the answer.
    If you're trying to create two frames and make them scroll together (for instance in the case of a page with a changing menu bar at the top or footer at the bottom that must appear as part of the page), you have to wrap them in another frameset.
    If I understand what you're asking, you want the page to look like one page that is capable of scrolling, but the page is actually composed of two frames.
    Try this... The first frame is a dummy (required), the second scrolling frame contains your other nonscrolling frameset containing the nonscrolling set of frames. Don't forget the cache controls in the head.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <META NAME="Description" CONTENT="Start Frame">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    </HEAD>

    <FRAMESET ROWS="1,480"
    BORDER="0"
    FRAMEBORDER="NO">
    <FRAME SRC="javascript:<HTML></HTML>"
    NAME="dummy"
    FRAMEBORDER="NO"
    MARGINHEIGHT="0"
    MARGINWIDTH="0"
    NORESIZE
    SCROLLING="NO">>
    </FRAME>
    <FRAME SRC="/cgi-bin/frames/mainFrame.jsp"
    NAME="navbarFrame"
    FRAMEBORDER="NO"
    MARGINHEIGHT="0"
    MARGINWIDTH="0"
    NORESIZE
    SCROLLING="YES">>
    </FRAME>
    </FRAMESET>

    ---------------------------------------------------------
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <META NAME="Description" CONTENT="Main Frames">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    </HEAD>

    <FRAMESET
    ROWS="120,*"
    BORDER="0"
    FRAMEBORDER="NO">
    <FRAME SRC="/cgi-bin/frames/navbar.jsp"
    NAME="navbarFrame"
    FRAMEBORDER="NO"
    MARGINHEIGHT="0"
    MARGINWIDTH="0"
    NORESIZE
    SCROLLING="NO">
    <FRAME SRC="/cgi-bin/frames/content.jsp"
    NAME="contentFrame"
    FRAMEBORDER="NO"
    MARGINHEIGHT="0"
    MARGINWIDTH="0"
    NORESIZE
    SCROLLING="NO">
    </FRAMESET>
    </HTML>

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Threads

  1. Allow vertical scroll but disallow horizontal scroll
    By gfreeman in forum Client-side forum
    Replies: 2
    Last Post: 27th November 2005, 20:24
  2. Why wil my page not scroll ?
    By gent48dd in forum Client-side forum
    Replies: 4
    Last Post: 11th July 2004, 04:09
  3. Replies: 2
    Last Post: 12th August 2002, 18:54
  4. can I scroll 2 frames with one scrollbar with javascript?
    By Bobaluee in forum Client-side forum
    Replies: 4
    Last Post: 14th September 2001, 01:29
  5. scroll bar in this page don't understand why
    By mike569 in forum Client-side forum
    Replies: 6
    Last Post: 8th August 2001, 04:15

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
  •