Team:Evry/template v1

From 2012.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
Line 6: Line 6:
<script type="text/javascript">writeHeader();</script>
<script type="text/javascript">writeHeader();</script>
</header>
</header>
 +
 +
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
 +
<script type="text/javascript">
 +
$(function(){
 +
  $('#btn_up').click(function() {
 +
    $('html,body').animate({scrollTop: 0}, 'slow');
 +
  });
 +
 +
  $(window).scroll(function(){
 +
    if($(window).scrollTop()<500){
 +
        $('#btn_up').fadeOut();
 +
    }else{
 +
        $('#btn_up').fadeIn();
 +
    }
 +
  });
 +
});
 +
</script>
 +
<div id="btn_up" style="position: fixed; bottom: 15px; right: 25px; cursor: pointer; display:none;">
 +
<img alt="Top_arrow" title="Top" src="https://static.igem.org/mediawiki/2012/9/91/Tadpole_transparent.png" width="40" />
 +
</div>
 +
</html>
</html>

Latest revision as of 14:13, 22 September 2012