Team:Calgary/Notebook

From 2009.igem.org

(Difference between revisions)
(WEEKLY UPDATES)
(WEEKLY UPDATES)
Line 11: Line 11:
===WEEKLY UPDATES===
===WEEKLY UPDATES===
----
----
-
<html>
+
<!--
-
<head>
+
//This function is used to show or hide a nested div
-
<script>
+
function show(which){
-
function checkIt(1)
+
m=document.getElementById("mainDiv");
-
{
+
trig=m.getElementsByTagName("div").item(which).style.display;
-
if (document.getElementById('LAB').onblur==true)
+
if (trig=="block") trig="none";
-
{
+
else if (trig=="" || trig=="none") trig="block";
-
document.getElementById('LAB').style.display='none';
+
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; 
}
}
-
</head>
+
 
-
</script>
+
#links{
-
<body>  
+
top: 200px;
-
<div id="LAB" style="display:block" onfocus=checkIt()>LAB</div>  
+
left: 10px;
-
</body>
+
position: absolute;
-
</html>
+
}
 +
</style>
 +
<div id="mainDiv">
 +
<div id="nestDiv">
 +
<img name="nestPic" onClick="javascript:show(1)">
 +
</div>
 +
</div>

Revision as of 19:22, 3 June 2009

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

WEEKLY UPDATES


<style type="text/css">

  1. mainDiv {

top: 150px; left: 300px; position: absolute; border: 1px transparent #000; background: #CC0033; color: #000; }

  1. nestDiv {

top: -60px; left:-100px; position: absolute; border: 1px transparent #000; background: transparent; display: block; visible: false; color: #000; }

  1. links{

top: 200px; left: 10px; position: absolute; } </style>

<img name="nestPic" onClick="javascript:show(1)">