Solved

I have frameset with tree rows and three columns

Posted on 2002-06-14
9
181 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 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Suggested Courses

636 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