Team:KAIST-Korea/test
From 2011.igem.org
(Difference between revisions)
Line 21: | Line 21: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | |||
bg = new Array(); | bg = new Array(); | ||
bg[0] = "http://unn.campuslife.co.kr/file/Media/News/Gisa/20107/14/image/2010714105315.jpg" | bg[0] = "http://unn.campuslife.co.kr/file/Media/News/Gisa/20107/14/image/2010714105315.jpg" | ||
bg[1] = "http://cfs6.tistory.com/image/4/tistory/2008/03/31/03/56/47efe2470b38f" | bg[1] = "http://cfs6.tistory.com/image/4/tistory/2008/03/31/03/56/47efe2470b38f" | ||
bg[2] = "http://news.chosun.com/site/data/img_dir/2007/12/14/2007121401109_0.jpg" | bg[2] = "http://news.chosun.com/site/data/img_dir/2007/12/14/2007121401109_0.jpg" | ||
- | |||
function changeBackground(jihan) | function changeBackground(jihan) | ||
{ | { | ||
- | |||
if(document.body) | if(document.body) | ||
{ | { | ||
- | document.body.style.background = | + | document.body.style.background = bg[jihan]; |
} | } | ||
} | } |
Revision as of 16:41, 12 August 2011