Team:EPF Lausanne

From 2013.igem.org

(Difference between revisions)
Line 22: Line 22:
<script>
<script>
-
   function hidetips() {
+
   function hideinfos() {
-
     var tips = document.getElementsByClassName("bacterias")[0].getElementsByTagName("p")
+
     var infos = document.getElementsByClassName("bacterias")[0].getElementsByTagName("p")
-
     for(var i=0; i < tips.length; i++)
+
     for(var i=0; i < infos.length; i++)
     {
     {
-
         tips[i].style.visibility = "hidden";
+
         infos[i].style.visibility = "hidden";
     }
     }
   }
   }
-
   function showtip(tipid) {
+
   function showinfo(infoid) {
-
     hidetips();
+
     hideinfos();
-
     document.getElementById(tipid).style.visibility = "visible";
+
     document.getElementById(infoid).style.visibility = "visible";
   }
   }
Line 53: Line 53:
<map name="bacteria">
<map name="bacteria">
-
<area id="areatip1" shape="rect" coords="80,40,130,100" alt="Tip1" onMouseOver="showtip('tip1')">
+
<area id="areainfo1" shape="rect" coords="80,40,130,100" alt="info1" onMouseOver="showinfo('info1')">
-
<area id="areatip2" shape="rect" coords="60,140,120,190" alt="Tip2" onMouseOver="showtip('tip2')">
+
<area id="areainfo2" shape="rect" coords="60,140,120,190" alt="info2" onMouseOver="showinfo('info2')">
</map>
</map>
<div class="bacterias" style="position:relative;width:100%;">
<div class="bacterias" style="position:relative;width:100%;">
-
   <img name="imageMap" src="https://static.igem.org/mediawiki/2013/e/e3/Bacterias.jpeg" border="0" alt="Bacteria" usemap="#bacteria" onclick="hidetips()">
+
   <img name="imageMap" src="https://static.igem.org/mediawiki/2013/e/e3/Bacterias.jpeg" border="0" alt="Bacteria" usemap="#bacteria" onclick="hideinfos()">
-
   <p id="tip1" style="left:80px;top:40px" onclick="javascript:location.href='http://www.google.ch'"><b>Blaa</b><br>Bla</p>
+
   <p id="info1" style="left:80px;top:40px" onclick="javascript:location.href='http://www.google.ch'"><b>Blaa</b><br>Bla</p>
-
   <p id="tip2" style="left:60px;top:140px" onclick="javascript:location.href='http://www.google.ch'"><b>Blaa</b><br>Bla</p>
+
   <p id="info2" style="left:60px;top:140px" onclick="javascript:location.href='http://www.google.ch'"><b>Blaa</b><br>Bla</p>
</div>
</div>
</html>
</html>

Revision as of 10:24, 1 August 2013



info1 info2

Bacteria

Blaa
Bla

Blaa
Bla


You can write a background of your team here. Give us a background of your team, the members, etc. Or tell us more about something of your choosing.
EPFL LOG RVB-96.tiff

Tell us more about your project. Give us background. Use this as the abstract of your project. Be descriptive but concise (1-2 paragraphs)

Your team picture
Team EPF_Lausanne