Team:NYMU-Taipei/TopBar
From 2014.igem.org
(Difference between revisions)
m |
m |
||
Line 84: | Line 84: | ||
}, 300, 'easeOutSine'); | }, 300, 'easeOutSine'); | ||
}); | }); | ||
- | + | /* // var scroll_py=0; | |
$(window).scroll(function (){ | $(window).scroll(function (){ | ||
var scroll_y = $(this).scrollTop(); | var scroll_y = $(this).scrollTop(); | ||
- | var bar_y = $('.left-bar').height(); | + | //var bar_y = $('.left-bar').height(); |
$('.left-bar').css({ | $('.left-bar').css({ | ||
- | top: bar_y + scroll_y - scroll_py, | + | //top: bar_y + scroll_y - scroll_py, |
+ | top:250+scroll_y; | ||
}); | }); | ||
- | + | // scroll_py=scroll_y; | |
- | }); | + | }); */ |
}); | }); | ||
</script> | </script> |
Revision as of 12:01, 5 May 2014