HTML Frames

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

HTML Frames

Post by evilmonkey »

Hi. I have a really n00bish HTML question. I have two (2) frames:

Code: Select all

<frameset cols="225,*" frameborder="0" border="0" framespacing="0"> 
    <frame name="leftFrame" scrolling="NO" noresize src="bintaplate3.htm" target="mainFrame" >
 <frame name="mainFrame" src="news.htm" scrolling="auto" target="_self">
  </frameset>
  </frameset>
My problem is, I need 'mainFrame' to be 90 pixels lower than the top of the page. Is it possible/What is the code for making it possible? :D

Thanks.

Cheers,
EvilMonkey Administrator.
User avatar
Heavy
Forum Contributor
Posts: 478
Joined: Sun Sep 22, 2002 7:36 am
Location: Viksjöfors, Hälsingland, Sweden
Contact:

Re: HTML Frames

Post by Heavy »

Do you mean like this?

Code: Select all

<frameset cols="225,*" frameborder="0" border="0" framespacing="0"> 
    <frame name="leftFrame" scrolling="NO" noresize src="bintaplate3.htm" target="mainFrame" >
    <frameset rows="90,*" frameborder="0" border="0" framespacing="0"> 
        <frame name="bannerFrame" src="banner.htm" noresize scrolling="auto" target="_self">
        <frame name="mainFrame" src="news.htm" scrolling="auto" target="_self">
    </frameset>
</frameset>
BTW, a <frameset> tag should be closed with a </frameset> tag. Not two... 8O
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

Can this be done witout inserting another frame (banner frame)? I want leftframe to be both leftframe and bannerframe, eliminating the need for the "bannerframe" How can I push the "mainframe" 90 pixels down?

Thanks.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

you may set the padding and/or margin property of the body element in the document of the frame-content
User avatar
Heavy
Forum Contributor
Posts: 478
Joined: Sun Sep 22, 2002 7:36 am
Location: Viksjöfors, Hälsingland, Sweden
Contact:

Try an IFRAME

Post by Heavy »

Try an IFRAME:

Code: Select all

<html>
	<body>
		<table border="1" width="100%" height="100%">
		<tr height="90">
			<td width="1" nowrap="true">Upper left</td>
			<td>Upper right</td>
		</tr>
		<tr height="100%">
			<td nowrap="true">Lower left</td>
			<td><iframe src="phpinfo.php" frameborder="1" width="100%" height="100%"></iframe></td>
		</tr>
		</table>
	</body>
</html>
and another one with filename: phpinfo.php

Code: Select all

<?php phpinfo();?>
It works with at least IE (didn't test it though) and Netscape 7.

AArgh! My chair broke! :oops:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

AArgh! My chair broke!
time for a walk and sauna? :D
User avatar
Heavy
Forum Contributor
Posts: 478
Joined: Sun Sep 22, 2002 7:36 am
Location: Viksjöfors, Hälsingland, Sweden
Contact:

Post by Heavy »

Yeah... well. I AM heavy, but it's not only pork.
I'm 196 cm tall.
My foot does not fit on an A4 size paper, not even diagonally.
Let's just say my brain takes 40% of my body weight 8)
The chair is very worn. I have changed its clothing two times with needle and thread. How many times have you guys done that?
We could say it's just old enough to crack.

But! Let's not change the subject of this topic! :wink:
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

Hello everyone.

I fixed my problem by messign with the margins (setting them to 0), and have not had a chance to try your script, heavy.

Thanks for your help mates.

EvilMonkey Admin.
Post Reply