|
Posted by dorayme on 04/01/07 00:08
In article <cplt03hrqcqfn9gkg05floc1h38kmhkuq5@4ax.com>,
Dave White <djwhite@snet.net> wrote:
> Hello everyone,
>
> When I click on a menu item it will usually reference a section of the
> current page.
>
Is this on a menu of your making? Usually, menu clicks take you
to a different page.
> How can I make that section jump to the top of the screen?
>
Suppose the menu item refers to some sub section below that is
headed by an <h2>...</h2>. If that element is id'd
<h2 id="greatApes">The Great Apes</h2>
and the menu item at top is linked thus:
<a href="page.html#greatApes">The Great Apes</a>
where page.html is the name of the html file we are on, then
clicking should get you the heading at the top.
If it does not, post a url.
> I haven't had any luck experimenting or finding an answer on the WWW.
>
--
dorayme
Navigation:
[Reply to this message]
|