28 lines
632 B
HTML
28 lines
632 B
HTML
<ul>
|
|
<li>
|
|
Load Pagify and jQuery:
|
|
<pre>
|
|
<script src="jquery.min.js" type="text/javascript"></script>
|
|
<script src="pagify.js" type="text/javascript"></script>
|
|
</pre>
|
|
</li>
|
|
|
|
<li>
|
|
Attach a div that will hold the content of each page by listing pages and options:
|
|
<pre>
|
|
$('#page_holder').pagify({
|
|
pages: ['home', 'about', 'contact'],
|
|
default: 'home' // The name of a page or 'empty'
|
|
});
|
|
</pre>
|
|
</li>
|
|
|
|
<li>
|
|
Show other pages by linking to hashes:
|
|
<pre>
|
|
<a href='#contact'>Contact</a>
|
|
</pre>
|
|
</li>
|
|
|
|
</ul>
|