Template:Team:Washington/Templates/Header
From 2009.igem.org
(Difference between revisions)
Line 12: | Line 12: | ||
window.onscroll = function() { | window.onscroll = function() { | ||
if ( window.XMLHttpRequest ) { // IE 6 doesn't implement position fixed nicely... | if ( window.XMLHttpRequest ) { // IE 6 doesn't implement position fixed nicely... | ||
- | if (Math.max(document.documentElement.scrollTop, document.body.scrollTop) > | + | if (Math.max(document.documentElement.scrollTop, document.body.scrollTop) > 260) { |
document.getElementById('uw_navBar').style.position = 'fixed'; | document.getElementById('uw_navBar').style.position = 'fixed'; | ||
document.getElementById('uw_navBar').style.top = '0'; | document.getElementById('uw_navBar').style.top = '0'; |
Revision as of 09:06, 8 October 2009