What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Scrolling frames as one (HTML)

Scrolling frames as one (HTML)
Author: Message:
PenguinBoy
Full Member
***

Avatar
indude

Posts: 270
Reputation: 4
35 / Male / –
Joined: Jun 2003
O.P. Scrolling frames as one (HTML)
I was wondering if anyone knows how to make multiple frames appear as if they are just different tables one page, I can't find any values or attributes to let me do it, but I remember sites which allow it. I know how to make the frames scroll separately but not how to make them do it so the top frame will scroll out of view as if they were attached and not really frames.

code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>TEN YEAR PROSPECT</title>

</head>
<frameset rows="270,*" frameborder="no" border="0" framespacing="0" scroll="yes">
  <frame src="header.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame"

title="topFrame" />
  <frame src="news.html" name="mainFrame" scrolling="No" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>


That's the code I've got - Is the solution complicated, or is there a simple attribute I've over looked??

EDIT:

Infact, i want it to look like it does now: www.tenyearprospect.com - but it's only one page at the moment.

I need to convert it into frames to keep the music player working while switching tracks, and when I do that it either doesn't scroll at all, or the bottom frame will scroll while the top one remains static.

Thank you if you can help!

This post was edited on 04-21-2007 at 12:27 PM by PenguinBoy.
04-21-2007 11:47 AM
Profile E-Mail PM Web Find Quote Report
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
35 / Male / Flag
Joined: Aug 2003
RE: Scrolling frames as one (HTML)
You can make your second frame, instead of as big as the rest of the browser window, huge so that you have no scrolling inside your frames. Then, you implement scrolling through the page (or a big frame) scrolling past the frames.

[Image: attachment.php?pid=811005]

PS Frames are evil.

.png File Attachment: html-frames-scrolling-together.png (7.93 KB)
This file has been downloaded 400 time(s).

This post was edited on 04-22-2007 at 10:15 PM by rav0.
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
04-22-2007 11:54 AM
Profile E-Mail PM Web Find Quote Report
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
RE: Scrolling frames as one (HTML)
is this what you want?

http://www.aboveandbeyond.nu
04-22-2007 02:09 PM
Profile E-Mail PM Find Quote Report
PenguinBoy
Full Member
***

Avatar
indude

Posts: 270
Reputation: 4
35 / Male / –
Joined: Jun 2003
O.P. RE: Scrolling frames as one (HTML)
nah, what i want is what rav is displaying, however, that does not work, because the frames always contain themselves on one page, it just converts itself into percentages or something, because i still can't scroll, but the header section just decreases.

Browsers do actualyl convert pixel measurements of frames into percentages.

I've had a bit of help from someone, and next week i'm going to try inserting an Iframe, who's height i can make to adjust depending on the content, and the page will be able to scroll as usual, and the content will just swap.

Aparently it should all be doable with css and javascript.
04-22-2007 02:26 PM
Profile E-Mail PM Web Find Quote Report
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
RE: Scrolling frames as one (HTML)
code:
<iframe src="header.html" frameborder="0" height="200" width="700"> </iframe>
<iframe src="content.html" frameborder="0" height="800" width="700"> </iframe>
is that what you want?

* Supersonicdarky is confused

This post was edited on 04-22-2007 at 02:29 PM by Supersonicdarky.
04-22-2007 02:29 PM
Profile E-Mail PM Find Quote Report
PenguinBoy
Full Member
***

Avatar
indude

Posts: 270
Reputation: 4
35 / Male / –
Joined: Jun 2003
O.P. RE: Scrolling frames as one (HTML)
something like that should work,  the content frame needs to have adaptable height according to what other content is swapped in... i hadn't realised the ability to use iframes in my initial post.

what you confused on lol?

Thanks by the way!
04-22-2007 02:32 PM
Profile E-Mail PM Web Find Quote Report
Verte
Full Member
***

Avatar

Posts: 272
Reputation: 7
Joined: Apr 2007
RE: Scrolling frames as one (HTML)
heh! that's awesome!
was put impeccably into words at DebianDay for me last Saturday, by Knut Yrvin of Trolltech - adults try something once, fail, and then are like "ffs this doesn't work". Children try, fail, and then try again, and succeed - maybe on the second, or even fifth retry. But the thing is that they keep at it and overcome the problems in the end.

-andrewdodd13
04-22-2007 09:34 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On