文本框没有onChange事件
改用onpropertychange

解决方案 »

  1.   

    <SCRIPT language="JavaScript">
    fuction Total()
    {
    var tot=0;
    tot+=(40.00*document.order.qty1.value);
    tot+=(69.95*document.order.qty2.value);
    tot+=(99.95*document.order.qty3.value);
    tot+=(4.95*document.order.qty4.value);
    document.order.totalcost.value=tot;
    }fuction UpdateCost(number,unitcost)
    {
    costname="cost"+number;
    qtyname="qty"+number;
    var q=document.order[qtyname].value;
    document.order[costname].value=q*unitcost;

    }
    </SCRIPT>
    我晕死!
    function,不是fuction的说!
    拜托稍微仔细一点!-_-