Team:OUC-China/Project/PooSb
From 2011.igem.org
(Difference between revisions)
(5 intermediate revisions not shown) | |||
Line 19: | Line 19: | ||
#side { | #side { | ||
width: 200px; | width: 200px; | ||
- | |||
- | |||
padding: 5px; | padding: 5px; | ||
- | + | position: absolute; | |
+ | top: 0px; | ||
+ | left: -215px; | ||
} | } | ||
.sidebar, .sidebar>ul { | .sidebar, .sidebar>ul { | ||
Line 53: | Line 53: | ||
} | } | ||
</style> | </style> | ||
+ | <script> | ||
+ | jQuery(window).scroll(function() { | ||
+ | jQuery('#side').stop(true,true).animate({'top': jQuery(this).scrollTop() + "px"},500); | ||
+ | }); | ||
+ | </script> | ||
<div id="side"> | <div id="side"> | ||
<ul class="sidebar"> | <ul class="sidebar"> |
Latest revision as of 04:06, 5 October 2011