Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change scrolling option of a frame just for one page

Status
Not open for further replies.

SuaveRick

Programmer
Apr 12, 2004
142
CA
Hi there,
I have webpage here that uses frames. One at the top, middle, and bottom. The middle one is used for the main content, the other two are for looks. I have scrolling set to no for the middle frame which is what I want for every page that loads in that middle frame EXCEPT for one. I have one page that I want the user to be able to scroll vertically... how do I change the scrolling option for just that HTML page that loads in the middle frame? I want all the others to be scrolling=no but just when this page loads, I want scrolling=yes.

Is that even possible?

Thanks!

Rick
 
Hmm, you could try something like this (in the one page's html):

Code:
<body onload="top.frames['frame_name'].scrolling = 'auto';">

*cLFlaVA
----------------------------
[tt]tastes great, less filling.[/tt]
 
Thanks for the info but that one didn't work for me. I did get it to work however. What I did was enable scrolling for that frame, scrolling='auto', and then on the page that I DIDN'T want the scroll bars I used CSS for the body to change overflow: hidden. That's hides the bars on the page that wants to show them.

So I got it work.

Thanks again,

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top