Index: rollingarchive.php =================================================================== --- rollingarchive.php (revision 142) +++ rollingarchive.php (working copy) @@ -16,7 +16,7 @@ ?>
- « + « Home
@@ -24,7 +24,7 @@ - » + »
Index: js/rollingarchives.js.php =================================================================== --- js/rollingarchives.js.php (revision 142) +++ js/rollingarchives.js.php (working copy) @@ -49,7 +49,7 @@ sliderValues[i] = i + 1; } this.PageSlider = new Control.Slider(rolling.pagehandle,rolling.pagetrack, { - range: $R(rolling.pagecount, 1), + range: $R(1, rolling.pagecount), values: sliderValues, sliderValue: 1, onSlide: function(v) { rolling.updatePageText(v); }, @@ -62,7 +62,7 @@ $(this.rollprev).onclick = function() { return false; }; $(this.rollnext).onclick = function() { return false; }; - $(this.rollnext).className = 'inactive'; + $(this.rollprev).className = 'inactive'; $(this.rollhome).className = 'inactive'; $(this.rollnotices).style.display = 'none'; this.updatePageText(this.pagenumber); @@ -79,11 +79,11 @@ }, gotoNextPage: function() { - this.PageSlider.setValueBy(-1); + this.PageSlider.setValueBy(1); }, gotoPrevPage: function() { - this.PageSlider.setValueBy(1); + this.PageSlider.setValueBy(-1); }, gotoPage: function(newpage) { @@ -91,14 +91,14 @@ new Effect.Appear(this.rollload, {duration: .1}); if (newpage >= this.pagecount) { - $(this.rollprev).className = 'inactive'; - $(this.rollnext).className = null; + $(this.rollnext).className = 'inactive'; + $(this.rollprev).className = null; $(this.rollhome).className = null; this.pagenumber = this.pagecount; } else if (newpage <= 1) { - $(this.rollprev).className = null; - $(this.rollnext).className = 'inactive'; + $(this.rollnext).className = null; + $(this.rollprev).className = 'inactive'; $(this.rollhome).className = 'inactive'; this.pagenumber = 1; @@ -155,4 +155,4 @@ this.query += '&rolling=1'; } } -}; \ No newline at end of file +};