I've been searching for the answer for over a day and still can't find the code so I thought I'll ask in forum. So my situation is I have a linear webpage (navigation with only back and next buttons) and I would like to impliment a code which automaticly shows on which page am I and counts how many pages are there total. Could do that manually but I'm very oftenly adding new pages so it takes some time to rewrite it all. So any suggestion?
Thanks in advance.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
So my situation is I have a linear webpage (navigation with only back and next buttons) and I would like to impliment a code which automaticly shows on which page am I and counts how many pages are there total.
Not only is this not possible in HTML/CSS, but it is short-sighted:
a) Surely you have to amend the links on the affected pages anyway?
b) How usable will a large site be with only sequential access?
No one will read past the third page (if that far). So even if you want the reader to read squentially, you will have to provide points where people can leave and return to (people have other demands on their time). Hence you might as well build in "random" access from the start.
Then if you still want to number the pages, the way to minimise the re-numbering is to split the site into sections. So you only have to re-number a section when you insert a new page, not the rest of the site!
Postscript: The alternative is to use a site designer package that supports re-numbering. I don't use a site designer package, so I caan't say which have this facility, but I'd guess that it is available. Only you still have the usability problem, so what is the point??? Sequential access does not work on web sites, particularly on dynamic ones subject to change.