Team:UCSF/animation

From 2010.igem.org

(Difference between revisions)
(New page: <html> <div id="anim"> <img onclick="changeImg(this, 'file:///C:/Users/Min%20Lin/Pictures/Syn%20Killers_Animation_20fps.gif')" src="blah1.gif"> </div> <script type="text/javascript"> funct...)
 
(21 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
<div id="anim">
+
 
-
<img onclick="changeImg(this, 'file:///C:/Users/Min%20Lin/Pictures/Syn%20Killers_Animation_20fps.gif')" src="blah1.gif">
+
<head>
-
</div>
+
<script type="text/javascript">
<script type="text/javascript">
-
function changeImg(img, newimg) {
+
 
-
img.src = newimg;
+
function mouseOver()
 +
{
 +
document.getElementById("b1").src ="https://static.igem.org/mediawiki/2010/5/5b/UCSF-SF-GGB-curled.jpg";
}
}
 +
 +
function mouseOut()
 +
{
 +
document.getElementById("b1").src ="https://static.igem.org/mediawiki/2010/d/dc/UCSF-SF-GGB.jpg";
 +
}
 +
 +
function onClick()
 +
{
 +
document.getElementById("b1").src ="https://static.igem.org/mediawiki/2010/b/b9/UCSF_Syn_Killers_Animation.gif";
 +
document.getElementById("b1").onmouseover="empty()";
 +
document.getElementById("b1").onmouseout="empty()";
 +
}
 +
 +
 +
 +
function empty(){
 +
}
 +
</script>
</script>
 +
</head>
 +
 +
<body>
 +
<img border="0" alt="UCSF banner" title="Click to watch the ninja move!" src="https://static.igem.org/mediawiki/2010/d/dc/UCSF-SF-GGB.jpg" id="b1"
 +
onmouseover="mouseOver()"
 +
onmouseout="mouseOut()"
 +
onclick="onClick()"
 +
height="250">
 +
 +
</body>
 +
</html>
</html>

Latest revision as of 22:03, 26 October 2010

UCSF banner