Template:Team:Sheffield/NavigationBar
From 2014.igem.org
(Difference between revisions)
Line 147: | Line 147: | ||
</style> | </style> | ||
<script> | <script> | ||
- | $( | + | $("#pageContent").scroll(function() { |
- | if ($( | + | 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