Team:Sevilla/template1

From 2011.igem.org

(Difference between revisions)
m
Line 11: Line 11:
<!--=====================================MENU ACORDEON  ======================================= -->
<!--=====================================MENU ACORDEON  ======================================= -->
-
<div id="sidebar">
+
<style>
 +
#firstpane {
 +
  position: fixed;
 +
  left:0!important;
 +
z-index: 1000; /*alto orden de prioridad si se pisa con otra cosa*/
 +
}
 +
</style>
 +
 
<div id="firstpane" class="menu_list">
<div id="firstpane" class="menu_list">
Line 42: Line 49:
<p class="menu_head">        <a href="/Team:Sevilla/sponsors">Sponsors</a>          </p>
<p class="menu_head">        <a href="/Team:Sevilla/sponsors">Sponsors</a>          </p>
      
      
-
</div>
 
</div>
</div>
Line 99: Line 105:
<!-- FIN -->
<!-- FIN -->
-
<!--- persecucion --->
 
-
<script type="text/javascript">
 
-
$(function() {
 
-
            var offset = $("#sidebar").offset();
 
-
            var topPadding = 15;
 
-
            $(window).scroll(function() {
 
-
                if ($("#sidebar").height() < $(window).height() && $(window).scrollTop() > offset.top) {
 
-
                    $("#sidebar").stop().animate({
 
-
                        marginTop: $(window).scrollTop() - offset.top + topPadding
 
-
                    });
 
-
                } else {
 
-
                    $("#sidebar").stop().animate({
 
-
                        marginTop: 0
 
-
                    });
 
-
                };
 
-
            });
 
-
        });
 
-
</script>
+
 
-
<style>
+
-
#sidebar {
+
-
  position: fixed;
+
-
  bottom: 10;
+
-
  left:0;
+
-
z-index: 1000;
+
-
}
+
-
</style>
+
<style>
<style>

Revision as of 12:43, 15 June 2011