摘要: 本文介绍基于GeoGebra和JavaScript的小程序样例 - 通过base64编码加载GGB图形。
网页代码:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <div id="applet"></div> <script src="../GeoGebra/deployggb.js"></script> <script> var applet = new GGBApplet({ ggbBase64: 'UEsDBBQACAgIAGOydUkAAAAAAAAAAAAAAAAWAAAAZ2VvZ2Vic.....AAQACAEAADgQAAAAAA==' }); applet.setHTML5Codebase('../GeoGebra/HTML5/5.0/web3d/', true); window.onload = function() { applet.inject('applet', 'html5'); }; </script>
|