Locking Frames (vertical scroll) Possible w/ HTML?

Discussion in 'HTML & Website Design' started by gmpron, Apr 1, 2008.

  1. #1
    Below is a simple code for a page with a frame on each side; left, & right

    as you can see, scrolling is activated. this is because the right frame has more content then can fit vertically on the page.

    what i want to do is lock them all together, so that, rather than each frame having a seperate scroll bar, there's only one, so the left and right frames scroll vertically with the mainframe.

    is this possible to do in HTML?

    if not, what's the best way to go about it? (& how?)

    Thanks



    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <frameset cols="*,140" frameborder="NO" border="0" framespacing="0">
    <frameset cols="140,*" frameborder="NO" border="0" framespacing="0">
    <frame src="leftframe.html" name="leftFrame" scrolling="yes" noresize>
    <frame src="/mainframe.html" name="mainFrame">
    </frameset>


    <frame src="/rightframe.html" name="rightFrame" scrolling="yes" noresize>
    </frameset>
    <noframes><body>

    </body></noframes>
    </html>
     
    gmpron, Apr 1, 2008 IP
  2. Samizdat

    Samizdat Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm looking for a similar solution. I'm trying to integrate my Youtube channel into the rest of my webpage, using frames. The top frame displays the logo, the bottom frame shows the channel. (It's http://www.woofkitty.co.uk/3972/orbcframes2.html)

    At the moment, the top frame is always at the top of the screen, while the bottom frame has a self contained scroll-bar. I don't want the top frame to be fixed, but to move with the bottom frame with a scrollbar on the outside of everything (otherwise the channel itself seems a bit cramped at the bottom).

    Can anyone enlighten me as to what html to use to sort this out (or a better way of doing this)?

    Here's the code currently used:
    Thanks!
     
    Samizdat, Sep 5, 2009 IP