Jump to content


Photo

google navigation?


  • Please log in to reply
3 replies to this topic

#1 spires

spires
  • Members
  • PipPipPip
  • Advanced Member
  • 492 posts

Posted 16 August 2006 - 08:59 PM

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
How to make over $600 a day from AdSense? Discover EXACTLY how he does it in these videos:
http://www.adsense-online.com

#2 GingerRobot

GingerRobot
  • Staff Alumni
  • Advanced Member
  • 4,086 posts
  • LocationUK

Posted 16 August 2006 - 09:30 PM

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.

#3 Exussum

Exussum
  • Members
  • Pip
  • Newbie
  • 9 posts

Posted 16 August 2006 - 09:31 PM

i would use a get varable

page.php?start=13

that any help ? or you want an exaple Script

#4 king arthur

king arthur
  • Members
  • PipPipPip
  • Advanced Member
  • 335 posts
  • LocationUK HQ

Posted 16 August 2006 - 09:47 PM

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.
Sir Isaac Newton said "If I have seen farther, it is by standing on the shoulders of giants". But it is not recorded as to whether he said it before or after he was hit on the head by a falling apple.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users