Html - help with frames (was "calling all html experts
- iceman
- Reverse Adjust Outside Corner Grinder
- Posts: 2448
- Joined: Fri Jan 09, 2004 9:54 am
- Location: Yorkshire, England. Quote: Its the fumes, they make one want to play
- Contact:
Html - help with frames (was "calling all html experts
the iceman needs help for a change
im haveing problems with frames <frameset> etc
see here for details http://iceman.150m.com/frames.html
im haveing problems with frames <frameset> etc
see here for details http://iceman.150m.com/frames.html
- Majination
- Hero Of 2004
- Posts: 659
- Joined: Thu Dec 25, 2003 10:07 pm
- Location: California
- Contact:
Use the following terms in your frame tags, as necessary.
scrolling="no"
noresize="noresize"
frameborder="no"
What you are looking for is the scrolling bit.
What I would like to know is the small bit of JaveScript to specify a certain target frame as the active frame. I hate having to click the main frame before I can scroll down with the mouse wheel.
scrolling="no"
noresize="noresize"
frameborder="no"
What you are looking for is the scrolling bit.
What I would like to know is the small bit of JaveScript to specify a certain target frame as the active frame. I hate having to click the main frame before I can scroll down with the mouse wheel.
http://bikecolors.shorturl.com -- ArmageTron Multi-Color Bike Picker
"Stimpy, sometimes your wealth of ignorance astounds me!" - Ren Hoek
"Stimpy, sometimes your wealth of ignorance astounds me!" - Ren Hoek
- locutus
- Match Winner
- Posts: 662
- Joined: Mon Jan 19, 2004 10:28 pm
- Location: MST [Quotation: "No Good Deed Ever Goes Unpunished.."]
- Contact:
this is how I do frameset tags. Covers most browsers.
<FRAMESET COLS="96%,*">
<FRAMESET ROWS="20%,*">
<FRAME NAME="header" SRC="header.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" NORESIZE FRAMEBORDER="No" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
<FRAMESET COLS="22%,*">
<FRAME NAME="menu" SRC="menu.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" NORESIZE FRAMEBORDER="No" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
<FRAME NAME="main" SRC="main.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="auto" NORESIZE FRAMEBORDER="No" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
</FRAMESET>
</FRAMESET>
<FRAME NAME="blank" SRC="blank.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" NORESIZE FRAMEBORDER="No" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
</FRAMESET>
<FRAMESET COLS="96%,*">
<FRAMESET ROWS="20%,*">
<FRAME NAME="header" SRC="header.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" NORESIZE FRAMEBORDER="No" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
<FRAMESET COLS="22%,*">
<FRAME NAME="menu" SRC="menu.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" NORESIZE FRAMEBORDER="No" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
<FRAME NAME="main" SRC="main.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="auto" NORESIZE FRAMEBORDER="No" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
</FRAMESET>
</FRAMESET>
<FRAME NAME="blank" SRC="blank.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no" NORESIZE FRAMEBORDER="No" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
</FRAMESET>

- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
You show in your little picutre thingy a scrollbar going up and down the whole page, is this correct? You can achieve this sort of thing by using a giant table then too. The difference between using a table and a frameset is that with a table the whole thing will scroll, while with a frameset only"main" will scroll.

- Lackadaisical
- Shutout Match Winner
- Posts: 823
- Joined: Sun Dec 21, 2003 4:58 pm
- Location: Amsterdam, Netherlands
- Contact:
But by using tables instead of frames and with the lack of ssi/php you need to put the head and menu manually in every page. Which isnt too much trouble when having a small site, but when there are ten+ pages on your site it gets a pain in the ass updating every page after you've changed something in the menu.
Official Officiant of the Official Armagetron Clan Registration Office
Back (in the sig) by popular demand: Lack draws
Back (in the sig) by popular demand: Lack draws
oki, you're all probably sick of me by now but i rear my ugly head and "shout" tableless sites with CSS absolute and relative positioning layout, that's what i use at my site but since i use a "free subdomain"-provider it's all packaged into their frameset.
anyway ice there are tons of sites teaching wildly different methods on the net, i'd recommend the following for reference and reading:
http://www.alistapart.com/ - articles
http://www.w3schools.com/default.asp - "tutorials" and reference (very fast and easy)
http://www.w3.org/ - for diehard problemsolving, here are the pure standards themselves
if one could bookmark the individual frames in a frameset i'd use frames. w3c has made a standard for this but none of the browsers have implemented it yet
anyway ice there are tons of sites teaching wildly different methods on the net, i'd recommend the following for reference and reading:
http://www.alistapart.com/ - articles
http://www.w3schools.com/default.asp - "tutorials" and reference (very fast and easy)
http://www.w3.org/ - for diehard problemsolving, here are the pure standards themselves
if one could bookmark the individual frames in a frameset i'd use frames. w3c has made a standard for this but none of the browsers have implemented it yet
- locutus
- Match Winner
- Posts: 662
- Joined: Mon Jan 19, 2004 10:28 pm
- Location: MST [Quotation: "No Good Deed Ever Goes Unpunished.."]
- Contact:
Anyone ever use iframes? They rock for table usage. They are the little windows I have on my page for our names and scores, and is what I am using in my main site as well, easy to target. And flash cah target multiple frames or iframes at once to load pages. If flash isn't used a "blank" page can be used to load into an iframe set with a meta refresh tag if you want specific frames to load in sequencial order.
If a browser supports frames, it usually supports iframes as well.
If a browser supports frames, it usually supports iframes as well.

- iceman
- Reverse Adjust Outside Corner Grinder
- Posts: 2448
- Joined: Fri Jan 09, 2004 9:54 am
- Location: Yorkshire, England. Quote: Its the fumes, they make one want to play
- Contact:
re: frames
thanks all
locutus: your code looks very similar to what ive tried but i had no luck (maybe i f.ucked up somewhere ?)
and yeah my pic shows one scroll bar at the right that scrolls the whole page banner and all etc
i dont use tables cos i want to load my menu.html banner.html and main.html files into the frames and i dont think this is possible with tables (or an i wrong ?)
ive got all the panels working fine and when i click the entrys in the menu it loads the new pages into the main frame just that damn scrollbar was giving me headache
i'll have to compare locutus's codde againts mine see what i did wrong
thankyou all very much
will let you know if it works
locutus: your code looks very similar to what ive tried but i had no luck (maybe i f.ucked up somewhere ?)
and yeah my pic shows one scroll bar at the right that scrolls the whole page banner and all etc
i dont use tables cos i want to load my menu.html banner.html and main.html files into the frames and i dont think this is possible with tables (or an i wrong ?)
ive got all the panels working fine and when i click the entrys in the menu it loads the new pages into the main frame just that damn scrollbar was giving me headache
i'll have to compare locutus's codde againts mine see what i did wrong
thankyou all very much
will let you know if it works

- locutus
- Match Winner
- Posts: 662
- Joined: Mon Jan 19, 2004 10:28 pm
- Location: MST [Quotation: "No Good Deed Ever Goes Unpunished.."]
- Contact:
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" ALIGN="center">
<TR>
<TD>
<!-- iframe 1 players -->
<DIV ALIGN="center"><IFRAME SRC="players.htm" SCROLLING="auto" NAME="players" ID="players" WIDTH="340" HEIGHT="400" MARGINWIDTH="0" MARGINHEIGHT="0" ALIGN="middle" STYLE="border: 1px solid #409FFF;"></IFRAME></DIV>
</TD>
<TD>
<!-- iframe 2 scores -->
<DIV ALIGN="center"><IFRAME SRC="http://www.armagetron.mars.org/lookup/?player=n54" SCROLLING="no" NAME="scores" ID="main" WIDTH="340" HEIGHT="400" MARGINWIDTH="0" MARGINHEIGHT="0" ALIGN="middle" STYLE="border: 1px solid #409FFF;"></IFRAME></DIV>
</TD>
</TR>
</TABLE>
as you can see, the iframes are contained to a very specific size and are named for targeting. This works very well contained within a table on a single page. You can load any web page into an iframe as I did with the score server search function, or an image, or a flash file or anything that you can view through a browser normally. I love using tables and iframes in combination. Very effective way of targeting and loading stuff.
<TR>
<TD>
<!-- iframe 1 players -->
<DIV ALIGN="center"><IFRAME SRC="players.htm" SCROLLING="auto" NAME="players" ID="players" WIDTH="340" HEIGHT="400" MARGINWIDTH="0" MARGINHEIGHT="0" ALIGN="middle" STYLE="border: 1px solid #409FFF;"></IFRAME></DIV>
</TD>
<TD>
<!-- iframe 2 scores -->
<DIV ALIGN="center"><IFRAME SRC="http://www.armagetron.mars.org/lookup/?player=n54" SCROLLING="no" NAME="scores" ID="main" WIDTH="340" HEIGHT="400" MARGINWIDTH="0" MARGINHEIGHT="0" ALIGN="middle" STYLE="border: 1px solid #409FFF;"></IFRAME></DIV>
</TD>
</TR>
</TABLE>
as you can see, the iframes are contained to a very specific size and are named for targeting. This works very well contained within a table on a single page. You can load any web page into an iframe as I did with the score server search function, or an image, or a flash file or anything that you can view through a browser normally. I love using tables and iframes in combination. Very effective way of targeting and loading stuff.

i use an iframe for displaying the different "pages" on my site loc (everything that is different from page to page except the changes in the status of the lights in the menu).
does anyone know anything about frames vs other solutions when it comes to buffering and reusing of files for displaying pages in browsers? once upon a time this was used as an argument for using frames... but now the files are reused no matter what aren't they?
does anyone know anything about frames vs other solutions when it comes to buffering and reusing of files for displaying pages in browsers? once upon a time this was used as an argument for using frames... but now the files are reused no matter what aren't they?
- iceman
- Reverse Adjust Outside Corner Grinder
- Posts: 2448
- Joined: Fri Jan 09, 2004 9:54 am
- Location: Yorkshire, England. Quote: Its the fumes, they make one want to play
- Contact:
re: frames
locutus i tried your code in your 1st reply does the same as my code 
fixed header that dont move
menu has scroll bar
main area also has a scroll bar
this is not what i want
what i really want is in my diagram
one scroll bar on right that scrolls all (so the page appears as if its just a normal single page not made of seperate html files)
i'll try your second solution and see what gives

fixed header that dont move
menu has scroll bar
main area also has a scroll bar
this is not what i want

what i really want is in my diagram
one scroll bar on right that scrolls all (so the page appears as if its just a normal single page not made of seperate html files)
i'll try your second solution and see what gives
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
Re: re: frames
Well, I think todo that you'd have to actually make it one page... with tables.iceman wrote:one scroll bar on right that scrolls all (so the page appears as if its just a normal single page not made of seperate html files)

- iceman
- Reverse Adjust Outside Corner Grinder
- Posts: 2448
- Joined: Fri Jan 09, 2004 9:54 am
- Location: Yorkshire, England. Quote: Its the fumes, they make one want to play
- Contact:
re: scroll bar
i wish my head was shaved again cos im starting to pull my hair out over this scroll bar
ive now tried 11 different ways of doing this and it still dont work, what the hell am i doing wrong ???
hmmm while typing this message ive just thought that each of my html files has a <head><body> etc (they are all normal pages) i wonder if thats messing it up ??? i dont think it would but i'll try removing everything and just leaving the content see what happens
i'll let ya know

ive now tried 11 different ways of doing this and it still dont work, what the hell am i doing wrong ???
hmmm while typing this message ive just thought that each of my html files has a <head><body> etc (they are all normal pages) i wonder if thats messing it up ??? i dont think it would but i'll try removing everything and just leaving the content see what happens
i'll let ya know
- Lackadaisical
- Shutout Match Winner
- Posts: 823
- Joined: Sun Dec 21, 2003 4:58 pm
- Location: Amsterdam, Netherlands
- Contact:
it just isnt possible iceman, unless maybe you want to make a frameset inside a frameset, but that would be incredibly um.. omzijdig? i dont know the word but lets just say it would be kinda unhandy and not really worth the trouble (who wants to scroll up to use the menu anyway?)
but here's how it would maybe work in theory:
but here's how it would maybe work in theory:
- you create a frameset like you normally would, but the vertical size of the content frame is set to a large number (as large as your largest page) instead of relative (*). you should also make sure the frame can't scroll.
- let's say this frameset is called frameset.htm.
- you create another frameset with only 1 frame and you place the frameset of the other page into this frame (src="frameset.htm")
Official Officiant of the Official Armagetron Clan Registration Office
Back (in the sig) by popular demand: Lack draws
Back (in the sig) by popular demand: Lack draws