View Single Post
  #1 (permalink)  
Old 05-09-2008, 01:33 AM
JavaNewb JavaNewb is offline
Member
 
Join Date: May 2008
Posts: 1
JavaNewb is on a distinguished road
Next and Previous Buttons
Hello all,

I'm a complete amateur when it comes to coding web pages. I know enough to get into trouble but not enough to do things from scratch. In other words, I've been going to all of the help pages on the net, finding code that is close to what I want, and modifying it to work as I need it. This has served me well enough to get the job done until I let my site grow beyond it's original 5 or 6 pages. Now I'm starting to get quite a few pages going and they all have NEXT and PREVIOUS buttons at the bottom. The problem is, if I want to insert a page between all of the pages then I have to recode the HTML of the following pages to allow for this change in format. When there was only 5 or 6 pages, no problem, but now that I'm getting close to 20+ it's becoming a pain, and I can only imagine how much harder it would be as it keeps growing.

So I'm trying to be forward thinking here (new concept for me) and find a way to make all the NEXT and PREVIOUS buttons to be sort of dynamic. If someone could point me in the right direction as Google hasn't been much of a help on this one. Basically I want to get rid of page numbers and just name the pages, so if I insert a page it won't matter to the other pages because it will have a unique name. I was thinking of maybe keeping a text file that could be accessed with a list of the names in the order I want them to be displayed. If someone where to come into the middle of the list from whatever website or bookmark, I want them to be able to use the NEXT and PREVIOUS buttons without fail. Any help would be greatly appreciated.
Reply With Quote
Sponsored Links