title: Scroll to top button in my website is not working
body: <p>my blog is www.xperiblog.com
  I had a scroll to top button which worked correctly. 
  But recently I removed my post navigation script. Now the button is not working. here's the codes</p>
  
  <p>Scroll to top button CSS <br/></p>
  
  <pre><code>#back-to-top {
       text-align:center;
       background:#f97e76;
       color:#fff;
       overflow:hidden;
       width:60px;
       height:30px;
       display:block;
       margin:0 auto;
       border-radius:5px 5px 0 0;
       border-top:3px solid #d26b64;
       cursor:pointer;
       background-image:url(http://4.bp.blogspot.com/-YQ-kX3Ifzb4/U6a5HhEhlLI/AAAAAAAADxI/wT_VI6RLrHM/s1600/totop.png);
       background-repeat:no-repeat;
       background-position:center;
  }
   #back-to-top a {
       color:#fff;
  }
   #back-to-top a:hover {
       color:#f0f0f0;
  }
  </code></pre>
  
  <p>Scroll to top button Script</p>
  
  <pre><code>&lt;script&gt;
  $("#back-to-top").click(function() {
    $("html, body").animate({ scrollTop: 0 }, "slow");
    return false;
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Script I removed</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
      var pageNaviConf = {
          perPage: 5,
          numPages: 5,
          firstText: "First",
          lastText: "Last",
          nextText: "Next",
          prevText: "Prev";
      }
      &lt;/script&gt;
      &lt;script type='text/javascript'&gt;
      //&lt;![CDATA[
      function pageNavi(o){var m=location.href,l=m.indexOf("/search/label/")!=-1,a=l?m.substr(m.indexOf("/search/label/")+14,m.length):"";a=a.indexOf("?")!=-1?a.substr(0,a.indexOf("?")):a;var g=l?"/search/label/"+a+"?updated-max=":"/search?updated-max=",k=o.feed.entry.length,e=Math.ceil(k/pageNaviConf.perPage);if(e&lt;=1){return}var n=1,h=[""];l?h.push("/search/label/"+a+"?max-results="+pageNaviConf.perPage):h.push("/?max-results="+pageNaviConf.perPage);for(var d=2;d&lt;=e;d++){var c=(d-1)*pageNaviConf.perPage-1,b=o.feed.entry[c].published.$t,f=b.substring(0,19)+b.substring(23,29);f=encodeURIComponent(f);if(m.indexOf(f)!=-1){n=d}h.push(g+f+"&amp;max-results="+pageNaviConf.perPage)}pageNavi.show(h,n,e)}pageNavi.show=function(f,e,a){var d=Math.floor((pageNaviConf.numPages-1)/2),g=pageNaviConf.numPages-1-d,c=e-d;if(c&lt;=0){c=1}endPage=e+g;if((endPage-c)&lt;pageNaviConf.numPages){endPage=c+pageNaviConf.numPages-1}if(endPage&gt;a){endPage=a;c=a-pageNaviConf.numPages+1}if(c&lt;=0){c=1}var b='&lt;span class="pages"&gt;Pages '+e+' of '+a+"&lt;/span&gt; ";if(c&gt;1){b+='&lt;a href="'+f[1]+'"&gt;'+pageNaviConf.firstText+"&lt;/a&gt;"}if(e&gt;1){b+='&lt;a href="'+f[e-1]+'"&gt;'+pageNaviConf.prevText+"&lt;/a&gt;"}for(i=c;i&lt;=endPage;++i){if(i==e){b+='&lt;span class="current"&gt;'+i+"&lt;/span&gt;"}else{b+='&lt;a href="'+f[i]+'"&gt;'+i+"&lt;/a&gt;"}}if(e&lt;a){b+='&lt;a href="'+f[e+1]+'"&gt;'+pageNaviConf.nextText+"&lt;/a&gt;"}if(endPage&lt;a){b+='&lt;a href="'+f[a]+'"&gt;'+pageNaviConf.lastText+"&lt;/a&gt;"}document.write(b)};(function(){var b=location.href;if(b.indexOf("?q=")!=-1||b.indexOf(".html")!=-1){return}var d=b.indexOf("/search/label/")+14;if(d!=13){var c=b.indexOf("?"),a=(c==-1)?b.substring(d):b.substring(d,c);document.write('&lt;script type="text/javascript" src="/feeds/posts/summary/-/'+a+'?alt=json-in-script&amp;callback=pageNavi&amp;max-results=99999"&gt;&lt;\/script&gt;')}else{document.write('&lt;script type="text/javascript" src="/feeds/posts/summary?alt=json-in-script&amp;callback=pageNavi&amp;max-results=99999"&gt;&lt;\/script&gt;')}})();
      //]]&gt;
      &lt;/script&gt;
  </code></pre>
  
  <p>Anyone know whats going on here. </p>