]> matita.cs.unibo.it Git - helm.git/blob - helm/gtkmathview-bonobo/test/embedding.html
1. syntax error fixed
[helm.git] / helm / gtkmathview-bonobo / test / embedding.html
1 <?xml version="1.0"?>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3
4 <head>
5   <script language="JavaScript">
6 <!--
7     function set_object_size(id, width, height)
8     {
9       document[id].width = width;
10       document[id].height = height;
11     }
12 -->
13   </script>
14 </head>
15
16 <body>
17
18   <h1>GtkMathView-Bonobo test page</h1>
19
20   The embedded object should display a mathematical formula.
21   <br />
22
23   <object name="MATH" data="#math1" width="500" height="100" type="application/mathml+xml">
24     <math id="math1" display="block" xmlns="http://www.w3.org/1998/Math/MathML">
25        <mfrac>
26          <mi href="http://www.google.it">x</mi>
27          <mn>2</mn>
28        </mfrac>
29       <mo>=</mo>
30       <mtext href="javascript:alert('like if I can do that')">click for the answer</mtext>
31     </math>
32   </object>
33
34   <form name="test">
35     <input name="eccolo" type="button" onClick="set_object_size('MATH', 100, 50)" value="Size"/>
36   </form>
37
38 </body>
39
40 </html>
41