Solved

I have frameset with tree rows and three columns

Posted on 2002-06-14
9
178 Views
Last Modified: 2013-11-19
I have frameset with tree rows. Middle row divided on three columns. Each column can have contents of different length. I don’t want each column to have their own scroll bar.  I want the middle row to scroll as one block. How to implement this? Thank you.
0
Comment
Question by:kornat
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 18

Expert Comment

by:bruno
ID: 7078326
tree rows?

no way to implement what you want, it doesn't make sense.  what if the three columns are not all the same length?  you might only be able to scroll the lowest common denominator.
0
 
LVL 2

Expert Comment

by:Marianne
ID: 7078430
Is the middle row divided on three columns by means of frames as well? Then you should just use scrolling attribute:

<frameset rows="*,*,*" border="0">
     <frame scrolling="no">
          <frameset cols="*,*,*">
          <frame>
          <frame scrolling="yes">
          <frame>
          </frameset>
     <frame scrolling="no">
</frameset>

Some important attributes like src are missing in this example just to make it more illustrative.

However, I am not sure whether I have understood the question right. Is "tree rows" = "three rows"? ;)

Good luck.
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 50 total points
ID: 7078497
Scrolling three frames together:

There are two functions. One for scrolling up and one for scrolling down.
You could combine them by passing an argument but the additional overhead
of doing it that way would cause a performance problem on slower machines.

<script language="JavaScript">
<!--
var UPSCRL=false;
var DNSCRL=false;

function scrollPageU ()
{
window.scrollBy(0,2);
parent.leftframe.scrollBy(0,2);
parent.middleframe.scrollBy(0,2);
}

function scrollPageD()
{
window.scrollBy(0,-2);
parent.leftframe.scrollBy(0,-2);
parent.middleframe.scrollBy(0,-2);
}
//-->

The frame declarations for the left frame and middle frame in the frame set would have to to be named. The function as written is assuming names of leftframe and middleframe.

To trigger the scroll we need an event. This is what it looks like
if we use mouse events and an image in an anchor.


<a href="#"
onMouseover="UPSCRL=setInterval('scrollPageU()',10)"
OnMouseout="clearInterval(UPSCRL)">
<img src="up.gif" border=0>
</a>

<a href="#"
onMouseover="DNSCRL=setInterval('scrollPageD()',10)"
OnMouseout="clearInterval(DNSCRL)">
<img src="down.gif" border=0>
</a>

Cd&
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:Marianne
ID: 7078517
kornat,

> I want the middle row to scroll as one block.

I missed this sentence of yours ant thus misunderstood the question. Sorry.
0
 
LVL 2

Expert Comment

by:jayyu2k
ID: 7088542
hello Kornat,

OPEN this http://www.jayanthonline.com/expert

IF that is what u are Currently Looking For, Read Further else :) Plz Ignore my Comment, And Excuse me for not understanding ur query properly .

---------------

well, according to what i understood, U have Totally, 5 HTML Files that u show them together in the 6th Frameset HTML FILE.

1.html the top row html file.

5.html the bottom row html file.

and 2,3,4 .html files are the three files in the middle row, which u want to scroll together as one block ! Right?

For that U need to do it this way.

Create a Frameset html page with oNLY three ROWS

call that default.htm for example.

For the first ROW - src="1.htm" (the file names are just examples u know how to change them to suit ur needs)

and in the last row, that is the third row, the src should be 5.htm

now create another html file called 6.htm

MAKE SURE the BODY has atleast these

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

YOU Will know why.

Now CREATE A TABLE, aligned to center with three COLs.

Each Td with width 33% 33% and 34% . Hope u understood things till now.

in the First COL, that is <TD> 1. InCLUde "2.htm"

the code should be like this.
this is the FIRST TD
<td width="33%" bgcolor="#008000" >
    <!--webbot bot="Include" U-Include="2.htm" TAG="BODY" startspan -->
</td>

in the same way include 3.htm in the second and 4.htm in the third TD. and save the file.

NOW In default.htm in the middle row, src=6.htm and save it.

 thats it ENJOY :-) IF U want the files to see the code one by one and manipulate download it from this zip file.

www.jayanthonline.com/expert/kornat.zip


 SURPRISINGLY this works even in NETSCAPE :P

Cheers
Jayanth


By the way ! :- I havent seen any good looking site with so many frames set in one html file !  why do  u want it this way ? it looks awful!  := Just a thought


0
 
LVL 2

Expert Comment

by:jayyu2k
ID: 7088547
hello Kornat,

OPEN this http://www.jayanthonline.com/expert

IF that is what u are Currently Looking For, Read Further else :) Plz Ignore my Comment, And Excuse me for not understanding ur query properly .

---------------

well, according to what i understood, U have Totally, 5 HTML Files that u show them together in the 6th Frameset HTML FILE.

1.html the top row html file.

5.html the bottom row html file.

and 2,3,4 .html files are the three files in the middle row, which u want to scroll together as one block ! Right?

For that U need to do it this way.

Create a Frameset html page with oNLY three ROWS

call that default.htm for example.

For the first ROW - src="1.htm" (the file names are just examples u know how to change them to suit ur needs)

and in the last row, that is the third row, the src should be 5.htm

now create another html file called 6.htm

MAKE SURE the BODY has atleast these

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

YOU Will know why.

Now CREATE A TABLE, aligned to center with three COLs.

Each Td with width 33% 33% and 34% . Hope u understood things till now.

in the First COL, that is <TD> 1. InCLUde "2.htm"

the code should be like this.
this is the FIRST TD
<td width="33%" bgcolor="#008000" >
    <!--webbot bot="Include" U-Include="2.htm" TAG="BODY" startspan -->
</td>

in the same way include 3.htm in the second and 4.htm in the third TD. and save the file.

NOW In default.htm in the middle row, src=6.htm and save it.

 thats it ENJOY :-) IF U want the files to see the code one by one and manipulate download it from this zip file.

www.jayanthonline.com/expert/kornat.zip


 SURPRISINGLY this works even in NETSCAPE :P

Cheers
Jayanth


By the way ! :- I havent seen any good looking site with so many frames set in one html file !  why do  u want it this way ? it looks awful!  := Just a thought


The File will be deleted in 6 days : I dont have much space on my site :

jayanth@jayanthonline.com ,
0
 
LVL 2

Expert Comment

by:jayyu2k
ID: 7088559
:- I took almost 30 mins to post :D anyways no hassles.

 Ill del the files by tomorrow.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7088595
Glad we could help.  Thanks for the A. :^)

Cd&
0
 
LVL 2

Expert Comment

by:jayyu2k
ID: 7091773
CD& what do ya feel about the answer i gave ? do u find any disadvantages ? :) Not that am competing for the points, just wanna know if i understood things properly

Jayanth
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question