For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > February 2005 > navigation in long document?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author navigation in long document?
RiGGa

2005-01-20, 3:56 pm

Hi,

Firstly I am relatively new to all this so sorry if these questions appear
dumb.

I am working on a site trying to learn more about web design and I have
chose the to use the following structure;

Index.php
menu.php

Index.php contains the main layout using CSS positioning and has a left
column (menu loaded in to here) middle column (content loaded here) and
right column (misc stuff loaded here). The index page contains
require_once ("menu.php") and the menu contains all the urls and passes the
value back to index.php as a page value i.e. page = page1.html and then the
index.php checks to ensure it's a valid page and does a
require_once( "$page" )

My problem:

If I have a long document that I want to have an url on for the user to
click to take them back to the top of the page, how do I get it to load
this in to the content area as currently when I click on it the page opens
overiding my divs (menu, content, misc)

I hope have explained this clearly, and appreciate any help

Many thanks

Rigga
nick

2005-02-18, 8:55 pm

not totally sure what your after here..if you want a link to
take the user to the top of the *current* page use this:

<a href=<?=$PHP_SELF?>#top>top</a>

"RiGGa" <rigga@hasnomail.com> wrote in message
news:41ea3bf8$0$47684$ed2619ec@ptn-nntp-reader02.plus.net...
> Hi,
>
> Firstly I am relatively new to all this so sorry if these questions appear
> dumb.
>
> I am working on a site trying to learn more about web design and I have
> chose the to use the following structure;
>
> Index.php
> menu.php
>
> Index.php contains the main layout using CSS positioning and has a left
> column (menu loaded in to here) middle column (content loaded here) and
> right column (misc stuff loaded here). The index page contains
> require_once ("menu.php") and the menu contains all the urls and passes
> the
> value back to index.php as a page value i.e. page = page1.html and then
> the
> index.php checks to ensure it's a valid page and does a
> require_once( "$page" )
>
> My problem:
>
> If I have a long document that I want to have an url on for the user to
> click to take them back to the top of the page, how do I get it to load
> this in to the content area as currently when I click on it the page opens
> overiding my divs (menu, content, misc)
>
> I hope have explained this clearly, and appreciate any help
>
> Many thanks
>
> Rigga



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com