Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Stop resizable TopFrame
Old 07-08-2005, 05:42 AM Stop resizable TopFrame
Super Talker

Posts: 148
Trades: 0
Hey guys,

Im currently doing frames and i have one leftFrame, mainFrame and one topFrame, top and nested left frames. Basically, when i do some resizing of the browser, my topFrame gets resized. And i do not want that, i have added in "noresize" but still will not work.

Is there any other way i can stop the topFrame from resizing when i resize the browser? Thanks in advance.
shaoen01 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-08-2005, 05:56 AM
onlyplace4's Avatar
Extreme Talker

Posts: 159
Location: Skegness, Lincolnshire, England
Trades: 0
The way I found to do this was to have two excess frames, one to the right and one at the bottom, and set both of these to 100%. For example:
Code:
<frameset rows="600,100%" framespacing="0">
    <frameset  cols="100,900,100%">
        <frame name="left" src="frames/left.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
        <frameset  rows="100,400,100">
            <frame name="top" src="frames/top.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
            <frameset  cols="800,100">
                <frame src="main.html" name="main" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
                <frame name="right" src="frames/right.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
            </frameset>
            <frame name="btm" src="frames/btm.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
        </frameset>
        <frame name="right_xs" src="frames/right_xs.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
    </frameset>
    <frame name="btm_xs" src="frames/btm_xs.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
The last two frames (right_xs and btm_xs) are the two extra frames used to pad the frameset.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
onlyplace4 is offline
Reply With Quote
View Public Profile Visit onlyplace4's homepage!
 
Old 07-08-2005, 06:29 AM
Super Talker

Posts: 148
Trades: 0
Hi,

What you mentioned sounds all so complicated, i dont understand how to do it. Below is the html coding for my frames:

<frameset rows="100,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="navi_top.html" name="topFrame" scrolling="NO" noresize>
<frameset cols="232,*" frameborder="NO" border="0" framespacing="0">
<frame src="navi_left%20(no%20dropdown).html" name="leftFrame" scrolling="NO" noresize>
<frame src="home.html" name="mainFrame" scrolling="yes">
</frameset>
</frameset>

Maybe you can help me out by editing the coding and add in the extra 2 frames to pad the frameset. That will be so much easier for me. Thanks a million.
shaoen01 is offline
Reply With Quote
View Public Profile
 
Old 07-08-2005, 06:48 AM
onlyplace4's Avatar
Extreme Talker

Posts: 159
Location: Skegness, Lincolnshire, England
Trades: 0
This should do it for you:

Code:
<!-- frames -->
<frameset rows="800,*" framespacing="0" frameborder="0">
    <frameset cols="800,*" framespacing="0" frameborder="0">
        <frameset rows="100,*" framespacing="0" frameborder="0">
            <frame name="topFrame" src="navi_top.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
            <frameset  cols="232,*">
                <frame name="leftFrame" src="navi_left%20(no%20dropdown).html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
                <frame name="mainFrame" src="home.html" marginwidth="0" marginheight="0" scrolling="yes" frameborder="0" noresize>
            </frameset>
        </frameset>
        <frame name="right_xs" src="" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
    </frameset>
    <frame name="btm_xs" src="" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
Hope that helps. If you need anything more, please give me a shout

PS: You only need to put sources in the right_xs and btm_xs frames if you want to change background colour etc., otherwise you can leave them blank.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
onlyplace4 is offline
Reply With Quote
View Public Profile Visit onlyplace4's homepage!
 
Old 07-08-2005, 07:21 AM
Super Talker

Posts: 148
Trades: 0
I just like to ask for right_xs and btm_xs frames, i just add in nothing? Add in an empty html file?
shaoen01 is offline
Reply With Quote
View Public Profile
 
Old 07-08-2005, 07:49 AM
onlyplace4's Avatar
Extreme Talker

Posts: 159
Location: Skegness, Lincolnshire, England
Trades: 0
You can leave them blank as I have, or you can point them to blank pages - the choice is yours. Blank pages do give you the option to make changes to these if you want, for example, the background colour of your main frameset to be the same as the rest of the browser, in which case these blank pages (and they both point to the same blank btw) would simply have to have the background colour of the body tag modified.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
onlyplace4 is offline
Reply With Quote
View Public Profile Visit onlyplace4's homepage!
 
Old 07-08-2005, 08:19 AM
Super Talker

Posts: 148
Trades: 0
When i copy and paste the code you edited above, the mainFrame and topFrame does not fill the whole browser. I like the mainFrame and topFrame to be a 100% but for the leftFrame to be of a certain width like 232 pixels in this case.

And of course, leftFrame and topFrame has to be non-resizable. When i resize the browser, the topFrame still does resize according to the browser size and i do not want that. I want the topFrame to be like the leftFrame, where no matter how we adjust the browser it does not resize. But the mainFrame has to be resizable. You know what i mean?
shaoen01 is offline
Reply With Quote
View Public Profile
 
Old 07-08-2005, 08:23 AM
onlyplace4's Avatar
Extreme Talker

Posts: 159
Location: Skegness, Lincolnshire, England
Trades: 0
I do yes, but then you can't use 100% as this is not a static measurement. The only way you can make frames static and non-resizeable with movement resizes is to make the frame a static width. If your browser is 800 pixels wide then 100% will be 800. If it's 1200 wide, then the frame will resize to 1200.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
onlyplace4 is offline
Reply With Quote
View Public Profile Visit onlyplace4's homepage!
 
Old 07-08-2005, 08:32 AM
Super Talker

Posts: 148
Trades: 0
Basically, i want my web page to look like this web page:
http://www.itee.uq.edu.au/~elec4600/

This web page no matter how i resize it, the topFrame and leftFrame will not be resizable but yet the mainFrame adjusts its size according to the user's browser size. Do you know how to do that?
shaoen01 is offline
Reply With Quote
View Public Profile
 
Old 07-08-2005, 07:38 PM
onlyplace4's Avatar
Extreme Talker

Posts: 159
Location: Skegness, Lincolnshire, England
Trades: 0
Well I looked at the page and the top frame does not remain static as testified by the image dropping down when you resize the browser. I have pasted the page source for that page:
Quote:
<frameset rows="75,*" framespacing="0" border="0" frameborder="0">
<frame name="banner" scrolling="no" noresize target="contents" src="banner.htm">
<frameset cols="182,*">
<frame name="contents" target="main" src="topic_index.html" scrolling="no" noresize>
<frame name="main" src="main.html" scrolling="auto">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
This is basically a standard frameset, but I do assure you, the top frame in this is NOT static.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
onlyplace4 is offline
Reply With Quote
View Public Profile Visit onlyplace4's homepage!
 
Old 07-09-2005, 01:17 AM
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
What is it with people and frames? They should be banned by the W3C.

Anyway, iframes are like frames but can be placed anywhere on the page and can interact in a much more fluent way than frames. You DO NOT need to use frames in most designs, infact it is incouraged that you never use it. A good time to use frames would be for making an Admin or Moderator CP. The rest, keep it simple and no frames.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 07-09-2005, 06:09 AM
onlyplace4's Avatar
Extreme Talker

Posts: 159
Location: Skegness, Lincolnshire, England
Trades: 0
I agree totally Twitch, I never use frames - then again I never use iframes either. I much prefer to use simple, clean and efficient methods. However, I can still see some instances where they might be of use and, of course, when I first started out coding, I used them myself, and still get asked on occasion to use them for other people.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
onlyplace4 is offline
Reply With Quote
View Public Profile Visit onlyplace4's homepage!
 
Reply     « Reply to Stop resizable TopFrame
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37507 seconds with 12 queries