Team:Evry/template v1
From 2013.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
+ | <!-- Remonter la page --> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> | <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
Line 22: | Line 23: | ||
</div> | </div> | ||
+ | <!-- menu latéral --> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function() { | $(function() { | ||
Line 39: | Line 41: | ||
</script> | </script> | ||
+ | <!-- Menu horizontal --> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function() { | $(function() { | ||
Line 81: | Line 84: | ||
}); | }); | ||
</script> | </script> | ||
+ | |||
+ | <!-- Onglet Notebook --> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(function() { | ||
+ | $(document).scroll(function() { | ||
+ | |||
+ | if($(document).scrollTop()>=160) | ||
+ | { | ||
+ | $('.onglet').css('position','fixed').css('top','25px'); | ||
+ | } | ||
+ | |||
+ | else | ||
+ | { | ||
+ | $('.onglet').css('position','absolute').css('top','265px'); | ||
+ | } | ||
+ | |||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
</html> | </html> |
Revision as of 16:49, 11 September 2013