Team:UCLA/Template/Javascript

From 2014.igem.org

(Difference between revisions)
(Created page with "function addEvent(obj,evt,fn,capture){ evt=evt.replace('on',''); if(obj.attachEvent) obj.attachEvent('on'+ evt,fn); else{ if(!capture) capture=false; obj.addEventListen...")
Line 1: Line 1:
 +
<html>
 +
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
 +
<script type="text/javascript">
function addEvent(obj,evt,fn,capture){
function addEvent(obj,evt,fn,capture){
evt=evt.replace('on','');
evt=evt.replace('on','');
Line 46: Line 49:
moveDiv(box,250,1000);
moveDiv(box,250,1000);
})
})
 +
</script>
 +
</html>

Revision as of 03:53, 16 July 2014