Template:Team:Sheffield/NavigationBar

From 2014.igem.org

(Difference between revisions)
Line 147: Line 147:
</style>
</style>
<script>
<script>
-
$(window).scroll(function() {     
+
$("#pageContent").scroll(function() {     
-
    if ($(window).scrollTop() > 0) {
+
    if ($("#pageContent").scrollTop() > 0) {
        $("#navigationBar").addClass("scrolling");
        $("#navigationBar").addClass("scrolling");
        $("#navigationBar li a").addClass("scrolling");
        $("#navigationBar li a").addClass("scrolling");

Revision as of 20:41, 13 September 2014