Inverse Composition Rules: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 13: | Line 13: | ||
<tr> | <tr> | ||
<td> </td> | <td> </td> | ||
<td><input type="radio" name="f" value="sin" checked></td> | <td><input type="radio" name="f" value="sin" checked onClick="change()"></td> | ||
<td><input type="radio" name="f" value="cos"></td> | <td><input type="radio" name="f" value="cos" onClick="change()"></td> | ||
<td><input type="radio" name="f" value="tan"></td> | <td><input type="radio" name="f" value="tan" onClick="change()"></td> | ||
<td><input type="radio" name="f" value="square"></td> | <td><input type="radio" name="f" value="square" onClick="change()"></td> | ||
<td><input type="radio" name="f" value="sinh"></td> | <td><input type="radio" name="f" value="sinh" onClick="change()"></td> | ||
<td><input type="radio" name="f" value="exp"></td> | <td><input type="radio" name="f" value="exp" onClick="change()"></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 43: | Line 43: | ||
<jsxgraph width="600" height="600" box="box"> | <jsxgraph width="600" height="600" box="box"> | ||
var brd = JXG.JSXGraph.initBoard('box', {axis:true, originX: 300, originY: 300, grid:true, unitX: 50, unitY: 50}); | var brd = JXG.JSXGraph.initBoard('box', {axis:true, originX: 300, originY: 300, grid:true, unitX: 50, unitY: 50}); | ||
var f, g; | |||
var change() = function() { | |||
var t = $('f').value; | |||
alert(t); | |||
} | |||
</jsxgraph> | </jsxgraph> | ||
Revision as of 13:17, 19 June 2009