Difference between revisions of "Random points"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) (New page: <html> <link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" /> <script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/pro...) |
A WASSERMANN (talk | contribs) |
||
Line 3: | Line 3: | ||
<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/jsxgraphcore.js"></script> | <script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script> | ||
− | <form><input type='button' value=" | + | <form><input type='button' value="Reload" onClick="reload();"></form> |
<div id="box" class="jxgbox" style="width:400px; height:400px;"></div> | <div id="box" class="jxgbox" style="width:400px; height:400px;"></div> | ||
<script language="JavaScript"> | <script language="JavaScript"> | ||
board = JXG.JSXGraph.initBoard('box', {originX: 10, originY:390 , unitX:380 , unitY: 380}); | board = JXG.JSXGraph.initBoard('box', {originX: 10, originY:390 , unitX:380 , unitY: 380}); | ||
− | + | function reload() { | |
− | function | ||
JXG.JSXGraph.freeBoard(board); | JXG.JSXGraph.freeBoard(board); | ||
board = JXG.JSXGraph.initBoard('box', {originX: 10, originY: 390, unitX: 380, unitY: 380}); | board = JXG.JSXGraph.initBoard('box', {originX: 10, originY: 390, unitX: 380, unitY: 380}); | ||
Line 18: | Line 17: | ||
board.unsuspendUpdate(); | board.unsuspendUpdate(); | ||
} | } | ||
+ | reload(); | ||
+ | </script> | ||
+ | </html> | ||
+ | |||
+ | <source lang="javascript"> | ||
+ | </source> | ||
+ | |||
+ | |||
+ | [[Category:Examples]] |
Revision as of 16:12, 7 December 2008