Team:KAIST-Korea/test

From 2011.igem.org

(Difference between revisions)
Line 5: Line 5:
<script type="text/javascript">
<script type="text/javascript">
-
bg = http://imgnews.jknews.co.kr/photo/2009/09/24/20090924_12537820151.jpg;
+
bg = 'http://imgnews.jknews.co.kr/photo/2009/09/24/20090924_12537820151.jpg';
function changeBackground(jihan)
function changeBackground(jihan)
Line 11: Line 11:
     if(jihan == 0)
     if(jihan == 0)
     {
     {
-
     document.body.style.background="url(bg) 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"
     }
     }
     else if(jihan == 1)
     else if(jihan == 1)

Revision as of 18:51, 12 August 2011