PDA

View Full Version : HTML - Frames


Iron_Jedi
09-16-2003, 02:22 PM
Ok. I'm currently using the "margin" tags for my website. And I DON'T LIKE IT. When ever I have text that goes beyond the margin percentage or height, it grows (in height). And I want to make something like Massassi's margin/frame... will frames do that for me?! Thanks!

------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

SithGhost
09-16-2003, 02:35 PM
Massassi uses frames for their navigation system. It's basically a way of displaying differant HTML files at once by splitting them up into their own "Frames." So first you create your files, and then you make the file that puts them all together. A very basic one looks like this:


<html>
<head>
</head>
<frameset cols="30%,*">

<frame src="file1.html" name="firstFrame"/>
<frame src="file2.html" name="nextFrame"/>

</frameset>
</html>


Basically, file1.html will take up 30 percent of the screen, and the asterisk (*) means file2.html will take up the rest of the screen.

That example uses columns, however, if you want rows, it's the same concept. Simply replace the cols attribute with a rows attribute.

When you want to make a hyperlink across frames, specify the target attribute as the name of the frame you want to link to:


<a href="frameFile.html" target="firstFrame">Link to the first Frame</a>


Hope that helps. http://forums.massassi.net/html/smile.gif

Have any more questions that I might be able to help with?

------------------
"It has become appallingly obvious that our technology has exceeded our humanity."

-Albert Einstein

Cool Matty
09-16-2003, 03:01 PM
That won't remove the margins though. Look at the source code on the menu bar for Massassi, to see how it was done. I am pretty sure it uses the margin attributes.

------------------
"The future is not determined by a throw of the dice, but is determined by the conscious decisions of you and me."
I am addicted to ellipses!!! AHHH!!! ...

Iron_Jedi
09-16-2003, 04:58 PM
I didn't say that I wanted to get rid of the margin, I just wanted it to look like Massassi's. And since I just tested it, it works! But I've noticed something else ... My frame bar moves... is there a way to lock that in place?

http://forums.massassi.net/html/smile.gif Thanks http://forums.massassi.net/html/smile.gif

------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

Iron_Jedi
09-16-2003, 07:01 PM
Ok here is the Code that I am using:

<a href="levels.html" target="mainFrame"> Levels/Mods</a>

And when I click the link, a new Window comes up, I want it to come in the "main" frame you know the COLS="20%, 80%" i want it to appear in the 80% frame... any help?!

thanks

------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

SithGhost
09-17-2003, 04:13 PM
Use the name attribute for the second frame tag and name it mainFrame. If you want to lock the bar in place, just place a "noresize" in each of the frame tags, or 'noresize="noresize"'.

------------------
"It has become appallingly obvious that our technology has exceeded our humanity."

-Albert Einstein

MentatMM
09-17-2003, 07:32 PM
If you only knew the horror you're inflicting upon me for forcing me to remember the time when I too was beginning to learn frames. :/

------------------
http://www.napalmdeathsquad.com

Iron_Jedi
09-18-2003, 04:11 AM
Thanks guys!

------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

Iron_Jedi
09-18-2003, 04:08 PM
Ok, I tryed the noresize="noresize" attribute, but it didn't work with both tages... so I have it like this now:

<frame src="left.html" noresize="noresize" name="leftFrame">

The NORESIZE works, and the bar stays in place, but when I got to click on the link, my TARGET doesn't work. http://forums.massassi.net/html/frown.gif Here is the code:
<a href="levels.html" target="mainFrame">Levels/Mods</a>

Any help would again be greatly appreciated. Thanks!

------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

SaberMaster
09-19-2003, 06:38 AM
<font face="Verdana, Arial" size="2">'noresize="noresize"'</font>

No one would code a browser to accept that. It's just 'noresize'.

You should check out http://www.htmlreference.com/ .

------------------
Author of the JK DataMaster (http://www.geocities.com/sabersdomain/files.html), Parsec (http://www.geocities.com/sabersdomain/files.html), Scribe (http://www.geocities.com/sabersdomain/files.html), and the EditPlus Cog Files (http://www.geocities.com/sabersdomain/files.html).

Iron_Jedi
09-19-2003, 09:31 AM
Should the code for the Frame "noresize" be like this:

&lt;frame noresize src="left.html" name="leftFrame"/&gt;

I didn't try it, but I did try everything else you guys told me, I'm just trying to make sure it works with you guys.


------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

SaberMaster
09-19-2003, 01:11 PM
Yes, but you don't need the forward slash.

------------------
Author of the JK DataMaster (http://www.geocities.com/sabersdomain/files.html), Parsec (http://www.geocities.com/sabersdomain/files.html), Scribe (http://www.geocities.com/sabersdomain/files.html), and the EditPlus Cog Files (http://www.geocities.com/sabersdomain/files.html).

Iron_Jedi
09-19-2003, 02:35 PM
Grrr! http://forums.massassi.net/html/mad.gif The bar stays in place, but the TARGET on the links isn't working! Grr! http://forums.massassi.net/html/mad.gif Grr!!! Someone want to list of what I have to do to get this thing working?!

To clarify that up: when I click on a link on my left frame, it doesn't show up on the main frame, it comes up as a new window!!! grr!! http://forums.massassi.net/html/mad.gif Does that help?



------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

SithGhost
09-19-2003, 03:12 PM
<font face="Verdana, Arial" size="2">No one would code a browser to accept that. It's just 'noresize'.</font>

Actually, when moving to technologies such as XML and XHTML, using such shortcuts is considered bad syntax. (Unless you use a less specific DTD in XHTML) So I simply decided to include that you could also put 'noresize="noresize"' as well.

As far as forward slashes go for ending empty tags, that is considered correct syntax in all three (HTML, XML, XHTML) if memory serves correct.

And as for htmlreference.com, I don't see any W3C support, so what makes it any better than the other HTML references?

------------------
"It has become appallingly obvious that our technology has exceeded our humanity."

-Albert Einstein

Iron_Jedi
09-20-2003, 08:59 AM
Ok. THIS IS NOT working. Who wants me to e-mail them so I can send them my website?!

So they can see for themselves what I'm doing wrong!?!!!!! http://forums.massassi.net/html/mad.gif

------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

SaberMaster
09-20-2003, 04:18 PM
<font face="Verdana, Arial" size="2">Actually, when moving to technologies such as XML and XHTML, using such shortcuts is considered bad syntax. (Unless you use a less specific DTD in XHTML) So I simply decided to include that you could also put 'noresize="noresize"' as well.</font>

In XML, that may be right. But in HTML, you're supposed to write just noresize. Look it up if you want.

<font face="Verdana, Arial" size="2">
As far as forward slashes go for ending empty tags, that is considered correct syntax in all three (HTML, XML, XHTML) if memory serves correct.</font>

I said it wasn't needed in HTML. I doubt it's the "correct" way to write HTML4 tags anyway. I don't see it in the W3C's examples.

<font face="Verdana, Arial" size="2">And as for htmlreference.com, I don't see any W3C support, so what makes it any better than the other HTML references?</font>

I didn't say it was the best, but it's simple and well-organized.


This isn't supposed to be an HTML debate. Iron Jedi, send me the zip, and I'll fix it for you.

------------------
Author of the JK DataMaster (http://www.geocities.com/sabersdomain/files.html), Parsec (http://www.geocities.com/sabersdomain/files.html), Scribe (http://www.geocities.com/sabersdomain/files.html), and the EditPlus Cog Files (http://www.geocities.com/sabersdomain/files.html).

Pommy
09-20-2003, 05:47 PM
<font face="Verdana, Arial" size="2">Originally posted by Iron_Jedi:
Ok. THIS IS NOT working. Who wants me to e-mail them so I can send them my website?!

So they can see for themselves what I'm doing wrong!?!!!!! http://forums.massassi.net/html/mad.gif

</font>

Can't you just paste the important code here? I'm sure it wouldn't be too much trouble to sort out.

------------------
Sigs are for n00bs.

[1337 FRNDS_Pommy (http://forums.massassi.net/cgi-bin/ubbmisc.cgi?action=getbio&UserName=FRNDS_Pommy) | 3.14 of 14 | » And-GTx2 (http://andgtx2.el3ctro.co.uk)]
Half-Life 2 Central (http://www.hl2central.net) - your definitive source for everything HL2!

Iron_Jedi
09-20-2003, 08:53 PM
Here is the code:
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Gundam Palace - The Rebirth of Gundam&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;FRAMESET NORESIZE="NORESIZE" COLS="20%, 80%"&gt;
&lt;FRAME SRC="left.html" NAME="leftFrame"/&gt;
&lt;FRAME SRC="main.html" "NAME="mainFrame"/&gt;
&lt;/FRAMESET&gt;
&lt;/HTML&gt; I know most of you guys use lowercase, but I use uppercase, I heard that there is no difference between the two.

Here is the other piece:
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Gundam Palace - The Rebirth of Gundam&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY BACKGROUND="3D_green.jpg"&gt;
&lt;CENTER&gt;
&lt;IMG SRC="Zero_Linker.gif"&gt;
&lt;P&gt;
&lt;FONT COLOR="White"&gt;&lt;FONT FACE="Verdana"&gt;&lt;FONT SIZE="4"&gt;&lt;U&gt;Gundam Palace&lt;/U&gt;&lt;/FONT&gt;&lt;BR&gt;
&lt;/CENTER&gt;
&lt;P&gt;
&lt;BODY LINK="White" VLINK="White" ALINK="White"&gt;
&lt;FONT COLOR="White"&gt;&lt;FONT FACE="Verdana"&gt;&lt;FONT SIZE="3"&gt;&lt;B&gt;News&lt;/B&gt;:&lt;/FONT&gt;&lt;BR&gt;
&lt;FONT COLOR="White"&gt;&lt;FONT FACE="Verdana"&gt;&lt;FONT SIZE="3"&gt;&lt;A HREF="oldnews.html" TARGET="mainFrame"&gt;Old News&lt;/A&gt;&lt;/FONT&gt;&lt;BR&gt; And their is the code for the left hand margin, PLZ help!

------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

Iron_Jedi
09-21-2003, 04:39 PM
COME ON PEOPLE PLZ HELP!

------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

SithGhost
09-22-2003, 04:46 PM
<font face="Verdana, Arial" size="2">&lt;FRAME SRC="main.html" "NAME="mainFrame"/&gt;</font>

Take out the " before NAME so it looks like this:

<font face="Verdana, Arial" size="2">&lt;FRAME SRC="main.html" NAME="mainFrame"/&gt;</font>

And noresize goes in the frame tags, not the frameset tags. http://forums.massassi.net/html/wink.gif

<font face="Verdana, Arial" size="2">This isn't supposed to be an HTML debate.</font>

My bad, sorry, I got kind of carried away... http://forums.massassi.net/html/frown.gif

------------------
"It has become appallingly obvious that our technology has exceeded our humanity."

-Albert Einstein

Iron_Jedi
09-22-2003, 05:50 PM
YEAH !!! IT ALL WORKS !!! I LOVE YOU GUYS!!! (Literally) http://forums.massassi.net/html/wink.gif

------------------
Gundam Academy - The Rebirth of Gundam
"Where's the next target?"

WhiteWizard
10-08-2003, 08:31 AM
Iron Jedi, I'd suggest not using hte &lt;font&gt; thag, and thre is a difference between upper and lower case in xhml and xml, but with html it doenst really matter I think...

But yeah, it's much eaiser to use CSS instead of &lt;font blablabla&gt;

------------------
Dreams that do come true can be as unsettling as those that don't.
-Brett Butler, 'Knee Deep in Paradise'