Team:KAIST-Korea/test

From 2011.igem.org

(Difference between revisions)
 
(99 intermediate revisions not shown)
Line 1: Line 1:
 +
{{:Team:KAIST-Korea/jihan}}
 +
__NOTOC__
<html>
<html>
<head>
<head>
<script type="text/javascript">
<script type="text/javascript">
-
function ask()
+
function changeBackground(jihan)
{
{
-
        var x = prompt("Hi, would you like to view our webpage?", "");
+
    if(jihan == 0)
-
        if(x == "Yes")
+
    {
-
        {
+
    document.body.style.background="url('https://static.igem.org/mediawiki/2011/2/2e/Kaist_gallery_1.jpg') no-repeat scroll center top"
-
            document.write("Ok, here we go!");
+
    }
-
        }
+
    else if(jihan == 1)
-
        else
+
    {
-
        {
+
    document.body.style.background="url('https://static.igem.org/mediawiki/2011/d/d6/Kaist_gallery_2.jpg') no-repeat center top"
-
            document.location.href="http://www.facebook.com";
+
    }
-
        }
+
    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"  
 +
    }
}
}
 +
 +
 +
<!-- 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) + ');';
 +
}
 +
 +
function fadeOut()
 +
{
 +
  for (i = 0; i <= 1; i += 0.01)
 +
  {
 +
    setTimeout("SetOpa(" + (1 - i) +")", i * duration);
 +
  }
 +
    setTimeout("FadeIn()", (duration + hidtime));
 +
}
 +
 +
function FadeIn()
 +
{
 +
  for (i = 0; i <= 1; i += 0.01)
 +
  {
 +
    setTimeout("SetOpa(" + i +")", i * duration);
 +
  }
 +
    setTimeout("fadeOut()", (duration + showtime));
 +
}
 +
 +
</script>
</script>
 +
</head>
<body>
<body>
-
        <input type="button" onclick="ask()" value="Please Click me!"/>
+
 
 +
<!--Tag Body-->
 +
<div>
 +
<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" />
 +
</a>
 +
<a><img id="tag3" src="https://static.igem.org/mediawiki/2011/4/48/Kaist2011_text_safety.png" />
 +
</a>
 +
</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