Team:KAIST-Korea/Results/Gallery2

From 2011.igem.org

(Difference between revisions)
Line 28: Line 28:
         top:-30px;
         top:-30px;
}
}
-
 
</style>
</style>
-
</head>
 
-
<body>
 
-
 
<!--Javascript used to implement the gallery-->
<!--Javascript used to implement the gallery-->
-
<script type="text/javascript">
+
<script type="text/javascript">
 +
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)
 +
{
 +
      if(document.body)
 +
      {
 +
            document.body.background = bg[jihan];
 +
      }
 +
}
</script>
</script>
 +
</head>
 +
<body>
-
 
+
<div id="icon_places_holder">
 +
      <img border="1" onclick="changeBackground(0)" src="http://imgnews.jknews.co.kr/photo/2009/09/24/20090924_12537820151.jpg" width="25" height="25";>
 +
      <img border="1" onclick="changeBackground(1)" src="http://cfs6.tistory.com/image/4/tistory/2008/03/31/03/56/47efe2470b38f" 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";>
 +
</div>
</body>
</body>
</html>
</html>

Revision as of 14:55, 12 August 2011