Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Seeking alternative to IFrames using DIV and IDs...

0 views
Skip to first unread message

Richard Mahoney

unread,
Oct 20, 2002, 8:21:58 AM10/20/02
to
Hi there,
I'm trying to use a fixed size DIV with the "overflow:auto;" attribute to
act as an alternative to an IFrame. So far so good.
But I wish to use links outside of this DIV to navigate within it. This code
works, the problem I'm having is that the entire page will jump down to the
start of the DIV.

For example -

<a href="#1">Part 1</a>
<a href="#2">Part 2</a>
<a href="#3">Part 3</a>
<a href="#4">Part 4</a>

<div>
<a id="1">Start of Part 1</a>
blah blah blah etc...
<a id="2">Start of Part 2</a>
blah blah blah etc...
<a id="3">Start of Part 3</a>
blah blah blah etc...
<a id="4">Start of Part 4</a>
blah blah blah etc...
</div>

How can I just scroll the contents of the DIV without scrolling the entire
document? The way my page is, it isn't desirable to jump to the start of the
DIV.
I'll give you an example - my test page is at
http://home.btconnect.com/richardmahoney/index.html

Click on the HELP menu link at the top, then ABOUT.
See the "FAQ" link?
That's what I'm having trouble with.
Maybe some scripting would solve this? I've tried but my Javascript skills
aren't too good.

ps - not much works on this page yet bar the Recent Weblog bit - I'm still
working on it and tranferring over from http://www.the-chaos-engine.20m.com

Immense thanks to anyone who can help.
RM.


0 new messages