Template:Lyon-INSA/homeCss

From 2012.igem.org

(Difference between revisions)
Line 249: Line 249:
<body>   
<body>   
   <div id="menuBloc" style="height:80px;background-color:transparent;width:100%;position:relative;top:-80px">
   <div id="menuBloc" style="height:80px;background-color:transparent;width:100%;position:relative;top:-80px">
-
       <div id="teamtown" class="_pt" style="background-color:transparent;position:relative;width:190px;height:80px;right:-50px">
+
       <div id="teamtown" class="_pt menuprinc" style="background-color:transparent;position:relative;width:190px;height:80px;right:-50px">
       </div>
       </div>
-
       <div id="project" class="_pt" style="background-color:transparent;position:relative;width:130px;height:80px;right:-242px;top:-80px">
+
       <div id="project" class="_pt menuprinc" style="background-color:transparent;position:relative;width:130px;height:80px;right:-242px;top:-80px">
       </div>
       </div>
-
       <div id="lab" class="_pt" style="background-color:transparent;position:relative;width:80px;height:80px;right:-374px;top:-160px">
+
       <div id="lab" class="_pt menuprinc" style="background-color:transparent;position:relative;width:80px;height:80px;right:-374px;top:-160px">
       </div>
       </div>
-
       <div id="result" class="_pt" style="background-color:transparent;position:relative;width:120px;height:80px;right:-456px;top:-240px">
+
       <div id="result" class="_pt menuprinc" style="background-color:transparent;position:relative;width:120px;height:80px;right:-456px;top:-240px">
       </div>
       </div>
-
       <div id="human" class="_pt" style="background-color:transparent;position:relative;width:230px;height:80px;right:-578px;top:-320px">
+
       <div id="human" class="_pt menuprinc" style="background-color:transparent;position:relative;width:230px;height:80px;right:-578px;top:-320px">
       </div>     
       </div>     
-
       <div id="collaboration" class="_pt" style="background-color:transparent;position:relative;width:200px;height:80px;right:-810px;top:-400px">
+
       <div id="collaboration" class="_pt menuprinc" style="background-color:transparent;position:relative;width:200px;height:80px;right:-810px;top:-400px">
       </div>
       </div>
   </div>
   </div>
Line 304: Line 304:
<script>
<script>
 +
$(".menuprinc").click(function(){
 +
          $(".menuprinc").css("background","none");
 +
});
 +
   $("#teamtown").click(
   $("#teamtown").click(
-
             function(){
+
             function(){      
                 $(".sousMenu").hide();
                 $(".sousMenu").hide();
                 $("#divtt").fadeIn();
                 $("#divtt").fadeIn();
 +
                $(".menuprinc").css("background","url('https://static.igem.org/mediawiki/2012/9/98/Fleche2.png') no-repeat");
 +
                $(".menuprinc").css("background-position","79px 63px");
               });
               });
   $("#project").click(
   $("#project").click(

Revision as of 11:18, 20 October 2012