Difference between revisions of "Point"

From JSXGraph Wiki
Jump to: navigation, search
(New page: This example shows how to construct a simple, draggable point <html> <script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script> <script type="text/...)
 
Line 2: Line 2:
 
<html>
 
<html>
 
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
 
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/loadjsxgraphXML.js"></script>
 
 
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
 
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
 
<div id="jxgbox" class="jxgbox" style="width:500px; height:400px; float:left; "></div>
 
<div id="jxgbox" class="jxgbox" style="width:500px; height:400px; float:left; "></div>

Revision as of 10:18, 17 September 2008

This example shows how to construct a simple, draggable point <html> <script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script> <script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>

<script type="text/javascript">

var board = JXG.JSXGraph.initBoard('jxgbox', {originX: 250, originY: 250, unitX: 50, unitY: 50});
var p = board.createElement('point',[1,1]);

</script>