You could try this:
On all pages:
Code:
<script src="alph.js"></script>
where alph.js is this:
Code:
var pages = ["011.html", "012.html", "013.html", "021.html","022.html", "023.html"];
function prev()
{
for (i = 0; i < pages.length; i++) {if(pages[i]==document.URL.substring(document.URL.lastIndexOf('/')+1, document.URL.length)&&pages[i-1]){window.location.href=pages[i-1]}}
}
function next()
{
for (i = 0; i < pages.length; i++) {if(pages[i]==document.URL.substring(document.URL.lastIndexOf('/')+1, document.URL.length)&&pages[i+1]){window.location.href=pages[i+1]} }
}
Then:
011.html:
Code:
<head>
<script src="alph.js"></script>
</head>
<body>
<h3 style="text-align: center">011.html</h3>
<span onclick="prev()">PREV</span>
<span onclick="next()">NEXT</span>
</body>
012.html:
Code:
<head>
<script src="alph.js"></script>
</head>
<body>
<h3 style="text-align: center">012.html</h3>
<span onclick="prev()">PREV</span>
<span onclick="next()">NEXT</span>
</body>
...And so on.
Bookmarks