Team:Shenzhen BGIC ATCG/temp/menu.html
From 2013.igem.org
(Difference between revisions)
Line 121: | Line 121: | ||
<div class="igemlogo"><a href="https://2013.igem.org"></a></div> | <div class="igemlogo"><a href="https://2013.igem.org"></a></div> | ||
- | <script>var getAngle = function(Xc, Yc, Xa, Ya, Xb, Yb) { | + | <script> |
+ | $(function(){ | ||
+ | $(window).scroll(function(){ | ||
+ | var scroH = $(this).scrollTop(); | ||
+ | |||
+ | |||
+ | var getAngle = function(Xc, Yc, Xa, Ya, Xb, Yb) { | ||
var v1x = Xb - Xc; | var v1x = Xb - Xc; | ||
var v1y = Yb - Yc; | var v1y = Yb - Yc; | ||
Line 154: | Line 160: | ||
$(".eye-left").offset({ | $(".eye-left").offset({ | ||
left: x11, | left: x11, | ||
- | top: y11 | + | top: y11-scroH |
}); | }); | ||
var x22 = (Math.cos(k2) * radius_right + x2).toFixed(0); | var x22 = (Math.cos(k2) * radius_right + x2).toFixed(0); | ||
Line 160: | Line 166: | ||
$(".eye-right").offset({ | $(".eye-right").offset({ | ||
left: x22, | left: x22, | ||
- | top: y22 | + | top: y22-scroH |
}) | }) | ||
}; | }; |
Revision as of 08:50, 17 September 2013
Playing with my eyes
aren't you?
Hi I am Dr. Mage!
A "budding" yeast cell!