PDA

View Full Version : Please Help me with multible Frame navigation


Enqui
03-03-2002, 07:11 AM
Hallo guys,

I'm developing my second home page this year. With that page I trie to claim the maximum of my HTML, Perl, JavaScript and PHP knowledge. And.., how expectable, I got some problems.

One most important Problem (I need help in this case) is that I made my page with 4 Frames, like this:

#####################
#:::'::::::::::::::::::::::':::#
#:::'::::::::::2:::::::::::':::#
#:::''''''''''''''''''''''''''''''''''''''''''''''''':::#
#:1:'::::::::::::::::::::::':3:#
#:::'::::::::::::::::::::::':::#
#:::':::::::::::4::::::::::':::#
#:::'::::::::::::::::::::::':::#
#:::'::::::::::::::::::::::':::#
#####################

I can't use Frame borders, in case of scalldown bars and so on, so I set frame borders "no"..

..But.. In lower resolution in Frame 1 and 4 some Graphics are not able to be seen. Of the reason that I disabled the scall down bars noone can see them..

Now my Question: I saw that one can make the scrall bars for all frames at the side of the window. In case of that one frame is larger than the screen, you can srall them all togehter at the right side of the window (Frame 3 border). That means all frames were scalled down. It will behave like one page and not like a page consisting of 4 Frames.. understand? ;)

How do I made it.. I need an advice, cause without it, the whole page would not function :(

Please help me :(

scoutt
03-03-2002, 11:26 AM
if you want those 4 frames to scroll as one, then you need to put them in a frame themselves. so you have 1 frame that houses 4 other frames. that could come messy.........

Enqui
03-03-2002, 01:23 PM
That sounds good.. can you give me an example how I have to do it..?

scoutt
03-03-2002, 01:43 PM
well just make your index.html or whatever you use as you index file. to have 1 frameset. in that frameset you will load the main page that has all the frames in it.

so the page you have now is called what? index.php or index.html.... so change that to main.php or something and then in your index.php you have the frameset.

<frameset cols="100%,*" frameborder="0" border="0">
<frame src="main.php" >
</frameset>

so main.php will contain the rest of you frameset as you have it now.

Enqui
03-03-2002, 03:50 PM
Ahh, know I know what you mean.. Yesterday I had the same idea. I made this changes but.. it didn't work.

It was unexpectable, I dont know why, but there were no scalling bars. I said scalling bar YES for the Mainframe but there were none.. ??? Do you what I had made wrong?

I attached the html page I used for the frame (not the mainframe).. I do that because I only can guess a mistake in that file.. I mean a kind of mistake that prevents scalling the whole **** :D

scoutt
03-03-2002, 04:44 PM
just looking at that code I have a few concerns.

first I don't think you can use half that stuff you have loaded in there. all that .js and style sheets has to go into the main page that opens in the frame.

second

<frameborder="0" noresize> is not valid.

Enqui
03-05-2002, 03:10 PM
I'm sorry that I bug you again :D .. but I try sooo many things but nothing seems to work :(

The possible mistakes were no mistakes .. they've nothing to do with the scallbars.. It drives me crazy .. this fool HTML ScallBar :(

spaz109ca
03-08-2002, 04:05 PM
Here is a simple way to navigate between frames:

<HTML>
<HEAD>
<TITLE>Your Title</TITLE>
</HEAD>
<FRAMESET cols="20%, 80%" border="0">
<FRAMESET rows="100, 0">
<FRAME src="your_nav.html">
</FRAMESET>
<FRAME name="Main" src="main.html">
<NOFRAMES>
</NOFRAMES>
</FRAMESET>
</HTML>

When you make a link in "your_nav.html", It should look something like this: <a href="..." target="Main">YOUR LINK</a> Therefore, whenever someone clicks the link, it will appear in "main.html"

If you have problems, tell me.