Team:KAIST-Korea/test

From 2011.igem.org

(Difference between revisions)
 
(65 intermediate revisions not shown)
Line 1: Line 1:
 +
{{:Team:KAIST-Korea/jihan}}
 +
__NOTOC__
<html>
<html>
<head>
<head>
-
<style type="text/css">
+
<script type="text/javascript">
-
body
+
function changeBackground(jihan)
{
{
-
      background-image:url('http://unn.campuslife.co.kr/file/Media/News/Gisa/20107/2/image/2010721521.jpg');
+
    if(jihan == 0)
-
      width=100%;
+
    {
-
      background-image:url('https://static.igem.org/mediawiki/2011/8/84/Kaist2011_menu_background.jpg');
+
    document.body.style.background="url('https://static.igem.org/mediawiki/2011/2/2e/Kaist_gallery_1.jpg') no-repeat scroll center top"
-
      background-repeat:no-repeat;
+
    }
-
      background-position:center top;
+
    else if(jihan == 1)
-
      background-attachment: scroll;
+
    {
-
      background-color:#bbe0e9;
+
    document.body.style.background="url('https://static.igem.org/mediawiki/2011/d/d6/Kaist_gallery_2.jpg') no-repeat center top"
-
      z-index:-100;
+
    }
 +
    else if(jihan == 2)
 +
    {
 +
    document.body.style.background="url('http://news.chosun.com/site/data/img_dir/2007/12/14/2007121401109_0.jpg') no-repeat center top"   
 +
    }
}
}
-
</style>
 
-
<body>
+
<!-- Testing -->
 +
function SetOpa(Opa)
 +
{
 +
  element.style.opacity = Opa;
 +
  element.body.style.MozOpacity = Opa;
 +
  element.body.style.KhtmlOpacity = Opa;
 +
  element.body.style.filter = 'alpha(opacity=' + (Opa * 100) + ');';
 +
}
-
<script type="text/javascript">
+
function fadeOut()
 +
{
 +
  for (i = 0; i <= 1; i += 0.01)
 +
  {
 +
    setTimeout("SetOpa(" + (1 - i) +")", i * duration);
 +
  }
 +
    setTimeout("FadeIn()", (duration + hidtime));
 +
}
-
/*
+
function FadeIn()
-
bg = new Array();
+
-
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[2] = "http://news.chosun.com/site/data/img_dir/2007/12/14/2007121401109_0.jpg"
+
-
*/
+
-
 
+
-
function changeBackground(jihan)
+
{
{
-
        var bg = "http://news.chosun.com/site/data/img_dir/2007/12/14/2007121401109_0.jpg";
+
  for (i = 0; i <= 1; i += 0.01)
-
        if(document.body)
+
  {
-
        {
+
    setTimeout("SetOpa(" + i +")", i * duration);
-
            document.body.style.background = 'url('bg')';
+
  }
-
        }
+
    setTimeout("fadeOut()", (duration + showtime));
}
}
 +
 +
</script>
</script>
 +
</head>
 +
<body>
-
<div id="icon_places_holder">
+
<!--Tag Body-->
-
      <img border="1" onclick="changeBackground(0)" src="http://imgnews.jknews.co.kr/photo/2009/09/24/20090924_12537820151.jpg" width="25" height="25";>
+
<div>
-
      <img border="1" onclick="changeBackground(1)" src="http://cfs6.tistory.com/image/4/tistory/2008/03/31/03/56/47efe2470b38f" width="25" height="25";>
+
<a href="https://2011.igem.org/Team:KAIST-Korea/Human_Practices/Human_Practices"><img id="tag2" src="https://static.igem.org/mediawiki/2011/2/26/Kaist2011_text_humanpractices.png" />
-
      <img border="1" onclick="changeBackground(2)" src="http://news.chosun.com/site/data/img_dir/2007/12/14/2007121401109_0.jpg" width="25" height="25";>
+
</a>
 +
<a><img id="tag3" src="https://static.igem.org/mediawiki/2011/4/48/Kaist2011_text_safety.png" />
 +
</a>
</div>
</div>
 +
 +
      <img border="1" onclick="changeBackground(0)" src="https://static.igem.org/mediawiki/2011/2/2e/Kaist_gallery_1.jpg" width="25" height="25";>
 +
      <img border="1" onclick="changeBackground(1)" src="https://static.igem.org/mediawiki/2011/d/d6/Kaist_gallery_2.jpg" width="25" height="25";>
 +
      <img border="1" onclick="changeBackground(2)" src="http://news.chosun.com/site/data/img_dir/2007/12/14/2007121401109_0.jpg" width="25" height="25";>
</body>
</body>
-
</head>
 
</html>
</html>

Latest revision as of 19:38, 12 August 2011