https://github.com/robflaherty/jquery-page-sequencer
A simple plugin for generating next and previous links
https://github.com/robflaherty/jquery-page-sequencer
Last synced: 3 months ago
JSON representation
A simple plugin for generating next and previous links
- Host: GitHub
- URL: https://github.com/robflaherty/jquery-page-sequencer
- Owner: robflaherty
- Created: 2010-05-19T02:05:51.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-08-27T23:08:19.000Z (almost 16 years ago)
- Last Synced: 2025-01-28T02:43:12.164Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Simple Page Sequence jQuery Plugin
This lil' plugin creates Next and Previous links from an array of arbitrary URLs. Normally you'd want to generate these links server-side, but if for some reason that's not possible you might find this plugin useful.
(I know there are a ton of jQuery pagination plugins out there but the ones that I saw only offered in-page, DHTML pagination effects.)
## How to use it:
//List the pages you want to include in a local array
var pageURLs = [
"example.html",
"example2.html",
"example3.html",
"example4.html"
];
//Call up the plugin
$("#page-nav").pageSequence({
//Required
source: pageURLs,
//Optional
prevText: "Previous Page",
nextText: "Next Page",
continuous: false
});