Team:KAIST-Korea/test

From 2011.igem.org

(Difference between revisions)
Line 30: Line 30:
function changeBackground(jihan)
function changeBackground(jihan)
{
{
-
      var bg = "http://news.chosun.com/site/data/img_dir/2007/12/14/2007121401109_0.jpg";
+
        var bg = "http://news.chosun.com/site/data/img_dir/2007/12/14/2007121401109_0.jpg";
-
//    if(document.body)
+
        if(document.body)
-
  //    {
+
        {
-
             document.body.style.background = 'url('+bg')';
+
             document.body.style.background = 'url('bg')';
-
  //    }
+
        }
}
}
</script>
</script>

Revision as of 16:40, 12 August 2011