Forum Moderators: open

Message Too Old, No Replies

2 scrollable areas

excuse my ignorance

         

smokeyb

6:42 pm on Sep 3, 2003 (gmt 0)

10+ Year Member



Excuse my ignorance again... but I want to build a site with 2 independently scrolling areas. If I use frames, I don't know how to make both frames scroll? (assuming aI use a left and main setup) can I make the left frame scroll?. I thought about making a template and making the content area editable and linking the pages there, but I'm not sure what will happen. Can anyone tell me the best way to achieve this (: A page with a scollable left navigaion area and a main content area where other pages load to).
Thanks, Smokey

Mark_A

7:39 pm on Sep 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi smokeyb,

If you were to use traditional frames you can make any frame you create scrollable or not. Some Example code from a site.

Insert your own column widths where the XXX are. Note the * on the second colum indicates flexible width.

Insert your own frame names where I have framename1 etc

Insert your own path to html frame contents files where I have put filename1.htm etc

and colour variables etc etc

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>Page title</HEAD>

<FRAMESET COLS="XXX,XXX*" FRAMESPACING="0" BORDER="0" FRAMEBORDER="NO" BORDERCOLOR="#whatever">

<FRAME SRC="../dir/filename1.htm" NAME="framename1" SCROLLING="NO" MARGINWIDTH="X" MARGINHEIGHT="X">

<FRAME SRC="filename2.htm" NAME="framename2" FRAMEBORDER="NO">

<NOFRAMES>put your noframes contents in here</NOFRAMES>

</FRAMESET>

</HTML>

You can see that the SCROLLING="NO" command disables scrolling in the first coloumn created on that page .. in the third as I recall scrolling was automatic as needed. I think I recall that you can force it always on. Experiment or look it up in the references.

Hope that helps

smokeyb

8:07 pm on Sep 3, 2003 (gmt 0)

10+ Year Member



Thanks Mark
Of course I can see it now, don't know where my brain was? I have never had the need to do this before (in my defence) so thanks for making it easy for me.
Smokey B