Jump to content

Archived

This topic is now archived and is closed to further replies.

spires

google navigation?

Recommended Posts

Hi

Does any one know how to creat a navigation bar like google.
e.g

Previous 1 2 3 4 5 6 7 8 9 10 11 12 Next
then
Previous 13 14 15 16 17 18 19 20 21 Next
ETC

All i can do is:
Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Next

one long continues row of numbers.

any help or links would be great.
thanks

Share this post


Link to post
Share on other sites
store the last page in a variable then when you echo out the page number make sure its no more than 10 less than the last page.

Share this post


Link to post
Share on other sites
i would use a get varable

page.php?start=13

that any help ? or you want an exaple Script

Share this post


Link to post
Share on other sites
It's really just a matter of what you do in the loop that echos out the pagenumbers and llinks. If, say, you only want 10 page numbers in the row, then start echoing links to page 1 or the current page minus 5, whichever is the higher, and then continue until you reach either the last page or the current page plus 5, whichever comes first.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.