Computing.Net > Forums > Web Development > Scrollbar problem with frames

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Scrollbar problem with frames

Reply to Message Icon

Name: Zenno
Date: July 20, 2005 at 04:58:01 Pacific
OS: Windows XP SP1A
CPU/Ram: P4 3.0 / 1.0 G DDR
Comment:

Ok, here's the situation,

I want a page with 3 frames, top, middle and bottom. All of these 3 frames will have no scrollbar.

BUT, i want the scrollbar to appear on the main html page that contains the 3 frames.

Is it possible ?

Thank you very much.


Zenno



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: July 20, 2005 at 06:27:29 Pacific
Reply:

Apparently, you havent even taken the 2 minutes needed to test this. Yes, it is possible - in fact, without some intervention, the main page would always have scrollbars (only active if the content doesn't fit the page).

Michael J


0

Response Number 2
Name: RandyH1959
Date: July 20, 2005 at 07:21:36 Pacific
Reply:

I think what he is asking is if you can make the frameset page scroll all three frames as one page. I have never tried it so I don't know if you can. If it were me, I would use tables instead of frames. I know this way would work for you.


0

Response Number 3
Name: Michael J (by mjdamato)
Date: July 20, 2005 at 09:15:18 Pacific
Reply:

Sorry for my abruptness. Instead of a traditional frameset, you can use iFrames. be sure to set the margin of the page to 0 or else the frames will not fill the page. Copy and paste the following into an html page to see an example:

<HTML>
<HEAD>
<TITLE>Iframe Example</TITLE>
</HEAD>
<body style=margin:0px;>
<IFRAME SRC=http://www.yahoo.com WIDTH=100% height=300 scrolling=no></IFRAME>
<IFRAME SRC=http://www.google.com WIDTH=100% height=300 scrolling=no></IFRAME>
<IFRAME SRC=http://www.computing.net WIDTH=100% height=300 scrolling=no></IFRAME>
</body>
</HTML>

Michael J


0

Response Number 4
Name: Zenno
Date: July 20, 2005 at 09:38:52 Pacific
Reply:

Thank you for your responses.

Actually, i thought of iframes to do this but since it's only compatible with IE, i hesitated.

Also, the reason i didn't want to use tables is because it will not be practical for i wanted to do.

I'm designing a web site in Photoshop and image ready. The main page contains several sections. I want to be able to add sections in the future directly into the middle frame of my frameset without having to update the content of the top and bottom section. Much more easier and faster than having to redo everything in photoshop, all the displacement, spacing, etc.

So i guess, i will use iframe after all.

Thanks guys.


Zenno


0

Response Number 5
Name: Michael J (by mjdamato)
Date: July 20, 2005 at 11:19:22 Pacific
Reply:

No Zeno. I wish you would have explained that originally. There are much better ways to accomplish what you are after. But first, let me get out my soap box. You should refrain from using "images" for site design/navigation. They take up unnecessary bandwidth and against the idea of separating content from design. Learn how to use CSS properly and your pages will be MUCH more flexible. For example if you have an image button for your "home" page and you need to change the background color, you need to create a new image. With CSS, you would just need to change the color property within the CSS.

Anyway, back to your issue. If you are only working with HTML, you can use ssi (server side include) pages to include content to your page using an external file. So, create header and footer files and include tehm at the top and bottom of your pages. Do a google search for proper format and implementation.

If you can use a scripting language, such as PHP, this is just as easy with a greater amount of flexibility. You could conditionally include different headers/footers depending upon which page is loading.

Michael J


0

Related Posts

See More



Response Number 6
Name: Zenno
Date: July 20, 2005 at 18:00:29 Pacific
Reply:

I'm using images for my website because graphically, it's much more easy to create great looking webpage with everything in the right place very easily because as you know imageready created a table with all the pictures with cell exactly where i want them to be. In the example you are giving about the background color for the home button, the only way to acomplish this is to use gif which are limited to 256 colors. And what about if my home button is using a drop shadow or a sophisticated gradient to blend with the background, using css i don't think this will work. I'm willing to let go a little more bandwith to have the pleasure of enjoying a great looking page.

Also, I don't know php. sorry.

As for ssi, this is new to me but as i can see in the following link:
http://bignosebird.com/ssi.shtml
It sures deserves my attention.

Thanks for all your input. And the reason i did not explain right away exactly what i wanted to do is because i wanted help and a lot of peoples don't even read the question when the initial post is too long. Believe me i tried.

Thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Scrollbar problem with frames

Problem with Computing.Net www.computing.net/answers/webdevel/problem-with-computingnet/249.html

Alternative to frames www.computing.net/answers/webdevel/alternative-to-frames/801.html

Buttons with frames help www.computing.net/answers/webdevel/buttons-with-frames-help/528.html