Team:Calgary/Notebook

From 2009.igem.org

(Difference between revisions)
(WEEKLY UPDATES)
(WEEKLY UPDATES)
 
(11 intermediate revisions not shown)
Line 12: Line 12:
----
----
<html>
<html>
 +
<head>
 +
<title>toggle_it() Demo</title>
 +
<script language="javascript">
 +
  function toggle_it(itemID){
 +
      // Toggle visibility between none and inline
 +
      if ((document.getElementById(itemID).style.display == 'none'))
 +
      {
 +
        document.getElementById(itemID).style.display = 'inline';
 +
      } else {
 +
        document.getElementById(itemID).style.display = 'none';
 +
      }
 +
  }
 +
</script>
 +
<style type="text/css">
<!--
<!--
-
//This function is used to show or hide a nested div
+
.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 10; }
-
function show(which){
+
.style7 {font-family: Arial, Helvetica, sans-serif; font-size: 10px; }
-
m=document.getElementById("mainDiv");
+
-->
-
trig=m.getElementsByTagName("div").item(which).style.display;
+
-
if (trig=="block") trig="none";
+
-
else if (trig=="" || trig=="none") trig="block";
+
-
m.getElementsByTagName("div").item(which).style.display=trig;
+
-
}
+
-
//-->
+
-
<style type="text/css">
+
-
#mainDiv { 
+
-
top: 150px;
+
-
left: 300px;
+
-
position: absolute; 
+
-
border: 1px transparent #000; 
+
-
background: #CC0033; 
+
-
color: #000; 
+
-
}  
+
-
 
+
-
#nestDiv {
+
-
top: -60px;
+
-
left:-100px;
+
-
position: absolute;
+
-
border: 1px transparent #000; 
+
-
background: transparent;
+
-
display: block;
+
-
visible: false;
+
-
color: #000; 
+
-
}
+
-
 
+
-
#links{
+
-
top: 200px;
+
-
left: 10px;
+
-
position: absolute;
+
-
}
+
</style>
</style>
-
<div id="mainDiv">
+
</head>
-
<div id="nestDiv">
+
<body>
-
<img name="nestPic" onClick="javascript:show(1)">
+
<form name="test" action="" method="post">
-
</div>
+
  <table width="199">
-
</div>
+
    <tr class="style7">
 +
    <td width="50%" align="right" height="23" valign="top"><a href="#" onClick="toggle_it('pr1')"><font size="3">Laboratory</font></a></td>
 +
  <td height="23" valign="left" >
 +
    </td>
 +
<td colspan="2">
 +
<table width="100%" id="pr1" name="police_response1" style="display:none;">
 +
<tr valign="top">
 +
  <td><span class="style10">Week 1</span></td>
 +
</tr>
 +
<tr>
 +
  <td><span class="style10">Week 2</span></td>
 +
</tr>
 +
<tr>
 +
  <td><span class="style10">Week 3</span></td>
 +
</tr>
 +
<tr>
 +
  <td><span class="style10">Week 4</span></td>
 +
</tr>
 +
  <td><span class="style10"></span></td>
 +
        </tr>
 +
        </table>
 +
        </td>
 +
    </tr>
 +
</table>
 +
</form>
</html>
</html>

Latest revision as of 17:27, 8 June 2009

Home The Team Calendar The Project Parts Submitted to the Registry Modeling Notebook

WEEKLY UPDATES


toggle_it() Demo

Laboratory