Team:Warsaw/test komorka

From 2009.igem.org

(Difference between revisions)
Line 12: Line 12:
</style>
</style>
-
 
<script>
<script>
 +
function changeDivBackground (thisArea, thisURL) {
-
function imageStyle(thisArea,inURL)
+
document.getElememtById('thisArea').style.backgroundImage = "url("+ thisURL + ")";
-
{
+
-
    document.getElementByID(thisArea).style.backgroundImage  = "url(" + inURL + ")";
+
}
-
}
 
function toggleOn(thisArea) {
function toggleOn(thisArea) {
Line 44: Line 42:
   document.getElementById("kom2").className = "komHide";
   document.getElementById("kom2").className = "komHide";
   document.getElementById("kom3a").className = "komHide";
   document.getElementById("kom3a").className = "komHide";
-
   document.getElementById("kom3b").className = "komHide";  
+
   document.getElementById("kom3b").className = "komHide";
-
   imageStyle (kom_main, https://static.igem.org/mediawiki/2009/6/67/Blacknwhite.png);
+
   changeDivBackground (kom_main,https://static.igem.org/mediawiki/2009/6/67/Blacknwhite.png);  
}
}
Line 66: Line 64:
<div id="kom3b" class="komHide" style="width:270px; height:149px; background-image:url(https://static.igem.org/mediawiki/2009/5/5f/Kom3b.png); position: relative; left:179px; top:0px;"></div>
<div id="kom3b" class="komHide" style="width:270px; height:149px; background-image:url(https://static.igem.org/mediawiki/2009/5/5f/Kom3b.png); position: relative; left:179px; top:0px;"></div>
<div id="kom2" class="komHide" style="width:290px; height:395px; background-image:url(https://static.igem.org/mediawiki/2009/1/1c/Kom2.png); position: absolute; left:0px; top:0px;"></div>
<div id="kom2" class="komHide" style="width:290px; height:395px; background-image:url(https://static.igem.org/mediawiki/2009/1/1c/Kom2.png); position: absolute; left:0px; top:0px;"></div>
-
<div id="kom3a" class="komHide" style="width:270px; height:149px; background-image:url(https://static.igem.org/mediawiki/2009/7/77/Kom3a.png); position: absolute left; left:179px; top:0px;"></div>
+
<div id="kom3a" class="komHide" style="width:270px; height:149px; background-image:url(https://2009.igem.org
-
<img id="komorka_main" src="https://static.igem.org/mediawiki/2009/c/cd/Pixel.gif" border=0 width="450" height="410" usemap="#komorka" style="position: absolute; width: 450px; height: 410px;" visibility: hidden;/>
+
/wiki/images/7/77/Kom3a.png); position: absolute left; left:179px; top:0px;"></div>
 +
 
 +
<img id="komorka_main" src="https://static.igem.org/mediawiki/2009/c/cd/Pixel.gif" border=0 width="450" height="410" usemap="#komorka" style="position: absolute; top: 0px; left: 0px; width: 450px; height: 410px;"/>
</div>
</div>
</body>
</body>
</html>
</html>
-
 
-
 
-
 
-
{{WarFoot1}}
 

Revision as of 20:56, 19 September 2009


test