Difference between revisions of "Adding events"

From JSXGraph Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<html>
 
<html>
<p id="myOutput"></p>
+
<p id="myOutput">&nbsp;</p>
 
</html>
 
</html>
 
<jsxgraph width="400" height="400">
 
<jsxgraph width="400" height="400">
Line 10: Line 10:
 
             myPoint);
 
             myPoint);
 
JXG.addEvent(myPoint.rendNode, 'mouseout',  
 
JXG.addEvent(myPoint.rendNode, 'mouseout',  
             function(){document.getElementById('myOutput').innerHTML = '';},  
+
             function(){document.getElementById('myOutput').innerHTML = '&nbsp;';},  
 
             myPoint);
 
             myPoint);
 
myPoint.hasPoint = function(){return false; };
 
myPoint.hasPoint = function(){return false; };

Revision as of 12:24, 28 July 2010