Riferimenti:Parametri delle applet GeoGebra
Per includere una applet di GeoGebra in una pagina HTML basta utilizzare l'opzione "Esporta il foglio di lavoro dinamico come pagina Web" del menu File. Gli utenti esperti possono comunque includere i tag dell'applet manualmente.
Tag dell'applet
Utilizzare le seguenti righe di comandi per includere una costruzione di GeoGebra in una pagina html. Il file contenente la costruzione (ad es. "circonferenza.ggb") deve essere nella stessa directory della pagina html.
<applet code="geogebra.GeoGebraApplet" archive="geogebra.jar" codebase="http://jars.geogebra.org/webstart/" width="500" height="300"> <param name="filename" value="circonferenza.ggb" /> <param name="framePossible" value="false" /> Installare Java 1.5 (o successivi) da www.java.com per utilizzare questa pagina. </applet>
È possibile utilizzare al posto del parametro filename il parametro ggbBase64 , con file codificati Base64. Per ottenere questo codice, premere Ctrl + Maiusc + M -- il tag dell'applet e il codice verranno memorizzati negli Appunti del sistema.
Codebase
Il Codebase definisce la posizione di file .jar di GeoGebra. È possibile impostare i seguenti valori:
- http://jars.geogebra.org/webstart/4.0/unsigned/ – sarà utilizzata una versione senza firma di GeoGebra, la quale non ha accesso all'hardware dell'utente (quindi le opzioni del tipo Annulla, Ripristina, Salva e Stampa risulteranno disabilitate), ma l'utente non dovrà confermare la finestra di dialogo che illustra i rischi sulla sicurezza.
- http://jars.geogebra.org/webstart/4.0 – da utilizzare se si desidera attivare le opzioni Annulla, Ripristina, Salva o Stampa
- percorso locale, ad es.
./
– da utilizzare se si desidera avere accesso al foglio di lavoro senza una connessione a geogebra.org. In questo caso è necessario scaricare nel percorso locale tutti i file .jar da uno degli URL precedentemente menzionati (se il codebase è./
, è necessario posizionare i file .jar nella stessa cartella del foglio di lavoro).
Parametri dell'applet
È possibile utilizzare i seguenti parametri all'interno del tag dell'applet.
Nome | Valore | Descrizione | Da |
---|---|---|---|
nome file | ad es. file.ggb
|
Percorso del file della costruzione. | 2.5 |
tipo | button
|
utilizzando questo parametro l'applet visualizzerà un pulsante per aprire la finestra di GeoGebra | 2.5 |
framePossible | true o false
|
determina se è possibile o meno aprire la finestra di GeoGebra con un doppio clic del mouse sulla Vista Grafica. Questo parametro viene ignorato se il tipo è impostato come "button". Valore predefinito: true | 2.5 |
bgcolor | ad es. #FFFFFF |
colore del bordo della linea tracciata per delimitare il pannello dell'applet (come stringa esadecimale rgb). Valore predefinito: grigio | 3.0 |
enableChooserPopups | true o false
|
determina la visualizzazione o meno di un menu a scomparsa quando si fa clic su più oggetti. Valore predefinito: true | 3.2 |
enableRightClick | true o false
|
determina se il clic destro del mouse deve essere gestito dall'applet. L'impostazione di questo parametro come "false" disattiva i menu contestuali, la finestra di dialogo Proprietà e lo zoom con il mouse. Valore predefinito: true. NB inoltre attiva / disattiva alcuni tasti di scelta rapida, come Canc e Ctrl + R (ricalcola tutti gli oggetti) | 3.0 |
enableLabelDrags | true o false
|
determina la possibilità di trascinare le etichette. Valore predefinito: true | 3.2 |
allowRescaling | true o false
|
determina se l'applet deve provare a ridimensionare la Vista Grafica durante il caricamento o quando vengono modificate le dimensioni (ad es. uno durante uno zoom nel browser). È automaticamente disabilitata se sono visibili il Foglio di calcolo o la Vista Algebra. Valore predefinito: false | 3.2 |
enableShiftDragZoom | true or false
|
states whether the drawing pad should be moveable using Shift + mouse drag (or. Ctrl + mouse drag) or zoomable using Shift + mouse wheel (or Ctrl + mouse wheel). Setting this parameter to "false" disables moving and zooming of the drawing pad. valore predefinito: true | 3.0 |
errorDialogsActive | true or false
|
states whether error dialogs will be shown if an invalid input is entered (using the barra di inserimento or JavaScript) valore predefinito: true | 3.2 |
showMenuBar | true or false
|
states whether the menubar of GeoGebra should be shown in the applet, valore predefinito: false | 2.5 |
showToolBar | true or false
|
states whether the toolbar with the construction mode buttons should be shown in the applet, valore predefinito: false | 2.5 |
maxIconSize | 16 to 32 | maximum size of icons used in the toolbar in pixels, valore predefinito: 32 | 3.2 |
showToolBarHelp | true or false
|
states whether the toolbar help text right to the toolbar buttons should be shown in the applet | 3.0 |
customToolBar | ad es. 0 1 2 3 , 4 5 6 7
|
sets the toolbar according to a custom toolbar string dove the int values are Toolbar Mode Values, , adds a separator within a menu, | starts a new menu and || adds a separator in the toolbar before starting a new menu.Custom tools are numbered 1001, 1002, etc
|
2.5 |
showAlgebraInput | true or false
|
states whether the algebra input line (with input field, greek letters and command list) should be shown in the applet | 2.5 |
allowStyleBar | true or false
|
States whether the style bar should be shown in the applet. valore predefinito: False | 4.0 |
showResetIcon | true or false
|
states whether a small icon (GeoGebra ellipse) should be shown in the upper right corner of the applet. Clicking on this icon resets the applet (cioè it reloads the file given in the filename parameter). | 2.5 |
language | iso language string
en ... English fr ... French it ... Italian de ... German es ... Spanish pt ... Portuguese zh ... Chinese |
GeoGebra tries to set your local language automatically (if it is available among the supported languages, of course). The valore predefinito language for unsupported languages is English. If you want to specify a certain language manually, please use this parameter. | 2.5 |
country | iso country string, ad es. AT for Austria
|
This parameter only makes sense if you use it together with the language parameter. | 2.5 |
ggbOnInitParam | eg applet2
|
This parameter allows you to specify the argument passed to the JavaScript function ggbOnInit(), which is called once the applet is fully initialised. This is useful when you have multiple applets on a page - see http://www.geogebra.org/source/program/applet/geogebra_applet_java2java.htm (will have no effect in earlier versions) | 3.2 |
java_arguments | eg -Xmx256m
|
This parameter allows you to specify more memory (in megabytes) for the GeoGebra applet. Works only in Java 6 update 10 or later (will have no effect in earlier versions) | 3.2 |
Examples
<applet code="geogebra.GeoGebraApplet" archive="geogebra.jar" width=200 height=40> <param name="filename" value="circle.ggb" /> <param name="type" value="button" /> <param name="bgcolor" value="#FFFFFF" /> Please <a href="http://java.sun.com/getjava">install Java 1.4</a> (or later) to use this page. </applet>