Solved

I have frameset with tree rows and three columns

Posted on 2002-06-14
9
176 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Glitch when viewing from computer to mini-window(smartphone) 1 43
Bootstrap 3 application structure 7 45
Bootstrap 3 icons 3 39
Datepicker in PHP 9 38
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

919 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now