Team:Manchester/NextButton

From 2013.igem.org

(Difference between revisions)
 
Line 3: Line 3:
<html>
<html>
<head>
<head>
-
/*<script type='text/javascript' src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
 
-
<script type="text/javascript">
 
-
function getDocHeight()
 
-
{
 
-
    var D = document;
 
-
    return Math.max(
 
-
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
 
-
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
 
-
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
 
-
    );
 
-
}
 
-
 
-
$.getDocHeight = function(){
 
-
    return Math.max(
 
-
        $(document).height(),
 
-
        $(window).height(),
 
-
        /* For opera: */
 
-
        document.documentElement.clientHeight
 
-
    );
 
-
};
 
-
 
-
  $(document).ready(function() {
 
-
    $(window).scroll(function() {
 
-
      if($(window).scrollTop() + $(window).height() == $(document).height())
 
-
      {
 
-
        $(".nextButton").fadeIn(100);
 
-
      }
 
-
      else
 
-
      {
 
-
        $(".nextButton").fadeOut(100);
 
-
      }
 
-
    });
 
-
  });
 
-
</script>*/
 
-
 
<style type="text/css">
<style type="text/css">

Latest revision as of 18:10, 4 August 2013