From 2013.igem.org
(Difference between revisions)
|
|
(3 intermediate revisions not shown) |
Line 1: |
Line 1: |
- | {{:Team:Evry/template_vf.js}}
| |
| | | |
- | <html>
| |
- | <header>
| |
- | <script type="text/javascript">writeHead();</script>
| |
- | <script type="text/javascript">writeHeader();</script>
| |
- | </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/2013/7/78/IronMan.png" width="40" />
| |
- | </div>
| |
- |
| |
- | </html>
| |
Latest revision as of 14:21, 10 August 2013