摘要: 本文介绍基于GeoGebra和JavaScript的小程序样例 - 通过filename加载GGB文件。
网页代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>2D网页,通过filename加载</title> </head> <body> <div id="applet"></div> <script src="../GeoGebra/deployggb.js"></script> <script> var applet = new GGBApplet({filename: '2d.ggb'}); applet.setHTML5Codebase('../GeoGebra/HTML5/5.0/web/', true); window.onload = function() { applet.inject('applet', 'html5'); }; </script> </body> </html>
|