| テキスト テキストのレッスンに戻る <script language="JavaScript1.2"> <!-- /* * Other parts required but not shown here: * In the HTML file, the form tag contains the following attribute: * * onsubmit="set_text(); return false;" * * And the input type=button tag in the form contains the following attribute: * * onclick="set_text()" */ /* * This function sets the Data for the first child of the * "text_block" SVG element according to the value entered in the * form. */ function set_text () { var svgobj; var svgdoc = document.SVG04a.getSVGDocument(); svgobj = svgdoc.getElementById('text_line_1'); svgobj = svgobj.getFirstChild(); svgobj.setData (document.editcontent.content.value); svgobj = svgdoc.getElementById('text_line_2'); svgobj = svgobj.getFirstChild(); svgobj.setData (document.editcontent.content.value); } // --> </script> テキストのレッスンに戻る |