Difference between revisions of "Template:Nymu-menu2"

(Undo revision 123626 by Albertage (talk))
Line 219: Line 219:
 
   height: 0;
 
   height: 0;
 
}
 
}
 +
 +
 +
#jumpup{
 +
        display: inline-block;
 +
        position: fixed;
 +
        z-index: 98;
 +
        bottom: 3%;
 +
      right:4%;
 +
        cursor:pointer;
 +
        width: 90px;
 +
}
 +
 +
#jumpup div.pic {
 +
    background: url(https://static.igem.org/mediawiki/2015/6/62/Nymu-Top.jpg) no-repeat;
 +
    background-size: 110px;
 +
    height: 110px;
 +
    width: 110px;
 +
}
 +
 +
#jumpup div.infotop {
 +
    padding-right:30px;
 +
    display: none;
 +
    background: url(https://static.igem.org/mediawiki/2015/b/b8/Nymu-top2.png) no-repeat;
 +
    background-size: 70px;
 +
    height: 70px;
 +
    width: 70px;
 +
}
 +
  
  
 
</style>
 
</style>
 +
 +
 +
<script>
 +
$(document).ready(function() {
 +
 +
                                //totop
 +
        $('#jumpup').on('click',function(){$('body, html').animate({scrollTop: 0},1);})
 +
                      .on('mouseover',function(){$(this).find('div.infotop').css('display','block');})
 +
                          .on('mouseout',function(){$(this).find('div.infotop').css('display','none'); }                   
 +
        );
 +
});
 +
</script>
 +
 +
 +
  
 
<div id= ' inthis'>
 
<div id= ' inthis'>

Revision as of 05:07, 24 August 2015