新贵妃醉酒mv下载:编一个ASP乘法运算程序 一个flash乘法运算程序 要求:例 从键盘输入数字 然后进行特定运算 并显示结果

来源:百度文库 编辑:高校问答 时间:2024/04/29 06:06:46

...

asp版:

<%dim c: c=ccur(request.form("a"))*ccur(request.form("b"))%>
<form method=post>Test:<input name=a>x<input name=b>=<%=c%>
<input type=submit value=go></form>

flash版:

var n, m:Number;
this.createTextField("a", this.getNextHighestDepth(), 10, 10, 100, 20);
this.createTextField("b", this.getNextHighestDepth(), 120, 10, 100, 20);
a.border = true;b.border = true;a.type = "input";b.type = "input";
a.onChanged = function(t:TextField) {n=Number(t.text);c()};
b.onChanged = function(t:TextField) {m=Number(t.text);c()};
function c(){if(n && m){trace(n+"x"+m+"="+n*m);}}