Forum Moderators: open

Message Too Old, No Replies

HTML for linking to next and previous directories

HTML for linking to next and previous directories

         

Romac34

2:57 pm on Oct 4, 2007 (gmt 0)

10+ Year Member



Hi,

On one of my domains I have multiple directories each with a hundred pages in them and one index file. Each index file has a button "next hundred" and "previous hundred". Does anyone know a piece of HTML that I can use as a link that when clicked it automaticly links you to the index file in the next or previous directory? I'm trying to cut some corners here because pretty soon I'm gonna have to do thousands of files and directories and I dont want to have to link them all by hand. My aim is to use a template for my index files using this script to let people nvaigate forward or backwards.

rocknbil

5:44 pm on Oct 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard Romac34, to do anything automatic is probably going to require the assistance of a sever-side language such as perl, php, or asp.

This simple script would read in the entire directory structure, figure out what page you are currently on, and determine the link to the previous or next directory. As you add directories, it would adjust accordingly.

The down side would be you would have to insert a php include or SSI include into all pages.

Or you could use frames <EEK>

Romac34

6:01 pm on Oct 4, 2007 (gmt 0)

10+ Year Member



Isn't there a simple javascript or html command that can do the same?

DianellysMorato

3:42 pm on Oct 14, 2007 (gmt 0)

10+ Year Member



there is nothing in HTML that will allow you to do that. Try PHP instead.

Dianellys Morato

[edited by: tedster at 3:58 pm (utc) on Oct. 14, 2007]