Team:Calgary/Notebook
From 2009.igem.org
(Difference between revisions)
(→WEEKLY UPDATES) |
(→WEEKLY UPDATES) |
||
Line 11: | Line 11: | ||
===WEEKLY UPDATES=== | ===WEEKLY UPDATES=== | ||
---- | ---- | ||
- | < | + | <!-- |
- | + | //This function is used to show or hide a nested div | |
- | + | function show(which){ | |
- | function | + | 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; |
- | <div id=" | + | left: 10px; |
- | </ | + | position: absolute; |
- | + | } | |
+ | </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">
- 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>
<img name="nestPic" onClick="javascript:show(1)">