Shoutbox

Scrolling frames as one (HTML) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Scrolling frames as one (HTML) (/showthread.php?tid=73801)

Scrolling frames as one (HTML) by PenguinBoy on 04-21-2007 at 11:47 AM

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!
RE: Scrolling frames as one (HTML) by rav0 on 04-22-2007 at 11:54 AM

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.


RE: Scrolling frames as one (HTML) by Supersonicdarky on 04-22-2007 at 02:09 PM

is this what you want?

http://www.aboveandbeyond.nu


RE: Scrolling frames as one (HTML) by PenguinBoy on 04-22-2007 at 02:26 PM

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.


RE: Scrolling frames as one (HTML) by Supersonicdarky on 04-22-2007 at 02:29 PM

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
RE: Scrolling frames as one (HTML) by PenguinBoy on 04-22-2007 at 02:32 PM

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!


RE: Scrolling frames as one (HTML) by Verte on 04-22-2007 at 09:34 PM

heh! that's awesome!