Team:Evry/template v1
From 2013.igem.org
(Difference between revisions)
Line 20: | Line 20: | ||
<img alt="Top_arrow" title="Top" src="https://static.igem.org/mediawiki/2013/7/78/IronMan.png" width="40" /> | <img alt="Top_arrow" title="Top" src="https://static.igem.org/mediawiki/2013/7/78/IronMan.png" width="40" /> | ||
</div> | </div> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(function() { | ||
+ | $(document).scroll(function() { | ||
+ | |||
+ | if($(document).scrollTop()>=200) | ||
+ | { | ||
+ | $('aside').css('position','fixed').css('top','15px').css('box-shadow','0px 6px 6px #1c1a19'); | ||
+ | |||
+ | } | ||
+ | else | ||
+ | { | ||
+ | $('aside').css('position','absolute').css('top','200px').css('left','15px').css('box-shadow','0px 4px 4px #1c1a19'); | ||
+ | } | ||
+ | |||
+ | |||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
</html> | </html> |
Revision as of 14:07, 10 August 2013