Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Css Pagination?

  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Css Pagination?

    I'm wondering how one would accomplish linking to a previous or subsequent page.

    Here is the website and as one can see at the bottom of the page I have a Back or next unlinked. http://www.jesmaharry.com/new/studio.htm and the same on http://www.jesmaharry.com/new/studio.htm and one other page.

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    mile high city
    Posts
    482
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Depends on what the goal is.

    If you're hoping to have visitors view pages in a particular order, you would simply hardcode the appropriate addresses into the links:

    Code:
    <a href="page_1.html">previous</a>
    
    <a href="page_2.html">next</a>
    On the other hand, if you want visitors to cycle through their browser history, you need a bit of javascript. Be warned however, if someone doesn't have javascript enabled, clicking the links won't have any effect.

    Code:
    <a href="#" onclick="javascript:history.go(-1)">previous</a>
    
    <a href="#" onclick="javascript:history.go(1)">next</a>
    Computer, kill Flanders... Did I hear my name? My ears are burning...
    Good start. Now finish the job.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •