Team:UCSF/animation

From 2010.igem.org

(Difference between revisions)
Line 14: Line 14:
}
}
-
function changeImg(img, newimg)  
+
function onClick()
{
{
-
img.src = newimg;
+
document.getElementById("b1").src ="https://static.igem.org/mediawiki/2010/b/b9/UCSF_Syn_Killers_Animation.gif";
 +
document.getElementById("b1").removeAttribute("onmouseout");
}
}
Line 23: Line 24:
<body>
<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="changeImg(this, 'https://static.igem.org/mediawiki/2010/b/b9/UCSF_Syn_Killers_Animation.gif')" height="250" align="center"/>
+
<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"  
 +
align="center"/>
</body>
</body>
</html>
</html>

Revision as of 07:23, 20 October 2010

UCSF banner