Results 1 to 2 of 2

Thread: Virtualpaginate - change display

  1. #1
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Virtualpaginate - change display

    1) Script Title: Virtualpaginate

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pagination.htm

    3) Describe problem:

    Hello,
    I need to change the navigation display in pagination, but but I have no idea how to do it. Please help me!

    Now I have something like this:
    <- 1 2 3 4 5 6 7 8 9 10 11 [12] 13 14 15 16 17 18 19 20 ->

    But I need something like this:

    <- 1 2 3 ... 11 [12] 13 ... 18 19 20 ->
    Active first page:
    <- [1] 2 3 ... 18 19 20 ->
    Active last page:
    <- 1 2 3 ... 18 19 [20] ->

    [12] - active page

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    You'd need to re-create the links from the script, and eliminate the links from the original script.

    In order to recreate the links, you'd need to use either several complex sets of if statements, or three loops with if statements within them. You'd create the links to the first (or first few) page(s), then dots (if necessary), then you'd create the middle three links (but only if they weren't already included in the other groups!), then dots (if necessary), then finally the last page(s).

    The logic is fairly complicated. Look up some tutorials on this to get the ideas.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Similar Threads

  1. Change Display Time Format
    By newphpcoder in forum PHP
    Replies: 1
    Last Post: 10-26-2011, 01:50 PM
  2. Virtualpaginate.js Help
    By omarkhan in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 06-17-2010, 08:56 AM
  3. Virtualpaginate.js Need Help
    By jamkoo in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-15-2010, 04:12 PM
  4. RSS display box: How to change the redirection of a link
    By m.bargallo in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 12-18-2009, 09:33 PM
  5. mouseOver text to change image in display area...
    By Dusty Monkey in forum JavaScript
    Replies: 6
    Last Post: 09-24-2009, 05:44 AM

Bookmarks

Posting Permissions

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