Solved

I have frameset with tree rows and three columns

Posted on 2002-06-14
9
175 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

746 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

13 Experts available now in Live!

Get 1:1 Help Now