Team:KAIST-Korea/test

From 2011.igem.org

(Difference between revisions)
Line 14: Line 14:
<script type="text/javascript">
<script type="text/javascript">
 +
var element = document.body;
var duration = 3000;
var duration = 3000;
var hidtime = 2000;
var hidtime = 2000;
Line 23: Line 24:
     {
     {
     document.body.style.background="url('http://imgnews.jknews.co.kr/photo/2009/09/24/20090924_12537820151.jpg') no-repeat center top"
     document.body.style.background="url('http://imgnews.jknews.co.kr/photo/2009/09/24/20090924_12537820151.jpg') no-repeat center top"
-
    document.body.style.opacity = 0.5;
 
     }
     }
     else if(jihan == 1)
     else if(jihan == 1)
Line 39: Line 39:
function SetOpa(Opa)
function SetOpa(Opa)
{
{
-
   document.body.style.opacity = Opa;
+
   element.style.opacity = Opa;
-
   document.body.style.MozOpacity = Opa;
+
   element.body.style.MozOpacity = Opa;
-
   document.body.style.KhtmlOpacity = Opa;
+
   element.body.style.KhtmlOpacity = Opa;
-
   document.body.style.filter = 'alpha(opacity=' + (Opa * 100) + ');';
+
   element.body.style.filter = 'alpha(opacity=' + (Opa * 100) + ');';
}
}

Revision as of 19:09, 12 August 2011