Team:KAIST-Korea/test

From 2011.igem.org

(Difference between revisions)
Line 4: Line 4:
<head>
<head>
<script type="text/javascript">
<script type="text/javascript">
 +
 +
bg = 'http://imgnews.jknews.co.kr/photo/2009/09/24/20090924_12537820151.jpg';
function changeBackground(jihan)
function changeBackground(jihan)
Line 9: Line 11:
     if(jihan == 0)
     if(jihan == 0)
     {
     {
-
     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(bg) no-repeat center top"
     }
     }
     else if(jihan == 1)
     else if(jihan == 1)
Line 20: Line 22:
     }
     }
}
}
 +
 +
 +
<!-- Testing Fade-in Fade-out -->
 +
 +
function LoadGallery(pictureName, imageFile,titleCaption,captionText,contentCaption)
 +
{
 +
  var picture = document.getElementById(pictureName);
 +
  if (picture.filters)
 +
  {
 +
    picture.style.filter="blendTrans(duration=1)";
 +
    picture.filters.blendTrans.Apply();
 +
  }
 +
  picture.src = imageFile;
 +
  if (picture.filters)
 +
  {
 +
    picture.filters.blendTrans.Play();
 +
  }
 +
  document.getElementById(titleCaption).innerHTML=captionText;
 +
}
 +
<!-- Testing -->
 +
 +
 +
 +
 +
 +
 +
</script>
</script>

Revision as of 18:49, 12 August 2011