Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

I have frameset with tree rows and three columns

Posted on 2002-06-14
9
Medium Priority
?
183 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn how to dynamically set the form action using jQuery.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

705 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