正在加载图片...
<html> cbod <head> <table width=50% border=0 align=center> <style>input, table font-size: 25px) </style <form name=sam> <tr><td>输入数学表达式<d> p function computer <td><input type=text name=int size=20 on Focus- javascript: alert("合法数据为:加 减、乘、除和数字")> document. bg Color-pink' </td></tr> document. foColorblue <rx<td>结果为d><td>< cinput sam ans value=eval(sam int value) type=text name=ans size=20></td></tr> <tr><td colspan=2> < input type=button value=计算 pl onclick-computer(P </head> </td></tr> </form></table></body></html<html> <head> <style>input,table{font-size:25px} </style> <script> function computer() { document.bgColor='pink'; document.fgColor='blue'; sam.ans.value=eval(sam.int.value); } </script> </head> <body> <table width=50% border=0 align=center> <form name=sam> <tr><td>输入数学表达式</td> <td><input type=text name=int size=20 onFocus='javascript:alert("合法数据为:加、 减、乘、除和数字")'> </td></tr> <tr><td>结果为:</td><td><input type=text name=ans size=20></td></tr> <tr><td colspan=2> <input type=button value=计算 onclick=computer()> </td></tr> </form></table></body></html>
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有