Template:Team:Sheffield/NavigationBar

From 2014.igem.org

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

Revision as of 10:22, 14 September 2014