reportingsjr Posted September 5, 2006 Share Posted September 5, 2006 Well, im making a game (if you read my post in php) and I have two frames, but the content in them is longer than the page. I just found out that frames are only as long as the browser window . Is there a way to make it so you can scroll down or something? Yes I know frames are evil, but they are helpful for many things in games, and very unhelpful in situations like this . I spent like half an hour googling this to. Please tell me if there is no way to do this!!Thanks!!! Link to comment Share on other sites More sharing options...
justsomeguy Posted September 6, 2006 Share Posted September 6, 2006 You can put scrollbars on frames, is that your question? Link to comment Share on other sites More sharing options...
pulpfiction Posted September 6, 2006 Share Posted September 6, 2006 <iframe> has height attribute, but i dont think <frame> has that option. it can stretch to the size of the main page... Link to comment Share on other sites More sharing options...
Jack McKalling Posted September 8, 2006 Share Posted September 8, 2006 Using an inline frame, and applying scrollbars to it: <iframe src ="...." height=".." width=".." scrolling="yes"></iframe>Or by using a frameset:<frameset ... ... ><frame src ="...." scrolling="yes" />...(the red will be the place to define the dimensions of all frames, which you already know, but I don't know if you have them in a row or in a column)There is practically no difference between a frame without scrollbars that is longer than the page, or a frame that does is equal long to the window but with scrollbars. You always have to scroll! It would be fun if the page continues below your monitor, hea :)But applying the scrolling attribute is a better choice than making the frame longer than the page (I don't knoiw if that is even possible). If a frame is longer than the page, and you scroll to the bottom of the frame element, all other frames scroll to the top of the window too, and the main idea of frames was that all others stay on its place, lol Link to comment Share on other sites More sharing options...
DimNull Posted September 8, 2006 Share Posted September 8, 2006 Using an inline frame, and applying scrollbars to it:Or by using a frameset:(the red will be the place to define the dimensions of all frames, which you already know, but I don't know if you have them in a row or in a column)There is practically no difference between a frame without scrollbars that is longer than the page, or a frame that does is equal long to the window but with scrollbars. You always have to scroll! It would be fun if the page continues below your monitor, hea :)But applying the scrolling attribute is a better choice than making the frame longer than the page (I don't knoiw if that is even possible). If a frame is longer than the page, and you scroll to the bottom of the frame element, all other frames scroll to the top of the window too, and the main idea of frames was that all others stay on its place, lol The code below will actually hide frame "three". You will only see the two top frames. I used this once to display a counter without 'users' seeing it! <FRAMESET ROWS="100%,*" COLS="*" BORDER="0" FRAMESPACING="0" BORDERCOLOR="C0C0C0"><FRAMESET COLS="50%,50%" ROWS="*" BORDER="0" FRAMESPACING="0" BORDERCOLOR="C0C0C0"> <FRAME SRC="FileName1.html" FRAME NAME="one" SCROLLING="AUTO" NORESIZE> <FRAME SRC="FileName2.html" FRAME NAME="two" SCROLLING="AUTO" NORESIZE> </FRAMESET><FRAME SRC="FileName3.html" FRAME NAME="three" SCROLLING="AUTO" NORESIZE></FRAMESET> Link to comment Share on other sites More sharing options...
Jack McKalling Posted September 11, 2006 Share Posted September 11, 2006 It is easy to do the same without frames, like: <p style="display:none">This my counter: 874. This is not visible.</p> :)But your frame is cool Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now