Team:WHU-China/templates/standardpage header

From 2013.igem.org

(Difference between revisions)
(Undo revision 143402 by IgnatzZeng (talk))
Line 159: Line 159:
</ul>
</ul>
-
<div style="float:right;margin-right:12%;margin-top:18px;">
+
<div class="mainiGEM">
<a title="iGEM Main Page" href="https://2013.igem.org/Main_Page">
<a title="iGEM Main Page" href="https://2013.igem.org/Main_Page">
<img src="https://static.igem.org/mediawiki/2013/b/b0/Back_to_IGEM.png" style="width:120px;position:fixed;top:10px;right:0px;z-index:1000;"/></a>
<img src="https://static.igem.org/mediawiki/2013/b/b0/Back_to_IGEM.png" style="width:120px;position:fixed;top:10px;right:0px;z-index:1000;"/></a>
</div>
</div>
 +
 +
<script type="text/javascript">
 +
        $(window).scroll(function () {
 +
            var scrollPos = $(window).scrollTop();
 +
            if (scrollPos > 100) {
 +
                $(".mainiGEM").addClass("sticktotop");
 +
            } else {
 +
                $(".mainiGEM").removeClass("sticktotop");
 +
            }
 +
        });
 +
    </script>
</div>
</div>
     <div id="menu-sub-container" class="pr" style="height: 0px; display: block;">
     <div id="menu-sub-container" class="pr" style="height: 0px; display: block;">

Revision as of 18:02, 21 September 2013