Difference between revisions of "Slider"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 1: | Line 1: | ||
Sliders enable a convenient way to experiment with mathematical constructions. | Sliders enable a convenient way to experiment with mathematical constructions. | ||
− | + | Example: | |
− | |||
− | |||
− | |||
<html> | <html> | ||
<link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" /> | <link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" /> | ||
Line 13: | Line 10: | ||
ax = b.createElement('axis', [[0,0], [1,0]], {}); | ax = b.createElement('axis', [[0,0], [1,0]], {}); | ||
ay = b.createElement('axis', [[0,0], [0,1]], {}); | ay = b.createElement('axis', [[0,0], [0,1]], {}); | ||
− | var s = b.createElement('slider',[[0,-3],[4,-3],[1,1,5]]); | + | var s = b.createElement('slider',[[0,-3],[4,-3],[1,1,5]],{name:'S'}); |
var a = b.createElement('point',[ | var a = b.createElement('point',[ | ||
function(){return s.Value();}, | function(){return s.Value();}, | ||
Line 20: | Line 17: | ||
</script> | </script> | ||
</html> | </html> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 15:34, 25 January 2009
Sliders enable a convenient way to experiment with mathematical constructions. Example: