| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 452 人关注过本帖
标题:急 求助求助!!!
只看楼主 加入收藏
tony721521
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2008-9-11
收藏
 问题点数:0 回复次数:1 
急 求助求助!!!
</td>
      <td bgcolor="#D6DBF7">市场价¥
        <input class="wenbenkuang" name="shichangjia" type="text" value="10" id="shichangjia" size="5" maxLength="8" onKeyPress    = "return regInput(this,    /^\d*\.?\d{0,2}$/,        String.fromCharCode(event.keyCode))"
        onpaste        = "return regInput(this,    /^\d*\.?\d{0,2}$/,        window.clipboardData.getData('Text'))"
        ondrop        = "return regInput(this,    /^\d*\.?\d{0,2}$/,        event.dataTransfer.getData('Text'))">
        会员价¥
        <input class="wenbenkuang" name="huiyuanjia" type="text" value="10" id="huiyuanjia" size="5" maxLength="8" onKeyPress    = "return regInput(this,    /^\d*\.?\d{0,2}$/,        String.fromCharCode(event.keyCode))"
        onpaste        = "return regInput(this,    /^\d*\.?\d{0,2}$/,        window.clipboardData.getData('Text'))"
        ondrop        = "return regInput(this,    /^\d*\.?\d{0,2}$/,        event.dataTransfer.getData('Text'))">
        VIP 价¥
        <input class="wenbenkuang" name="vipjia" type="text" value="10" id="vipjia" size="5" maxLength="8" onKeyPress    = "return regInput(this,    /^\d*\.?\d{0,2}$/,        String.fromCharCode(event.keyCode))"
        onpaste        = "return regInput(this,    /^\d*\.?\d{0,2}$/,        window.clipboardData.getData('Text'))"
        ondrop        = "return regInput(this,    /^\d*\.?\d{0,2}$/,        event.dataTransfer.getData('Text'))" checked>
        元</td>
    </tr>
    <tr>
      <td bgcolor="#D6DBF7" align="center">
        <%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from ziduan where ziduanorder=6 ",conn,1,1
%>
        <%=rs_s("ziduanname")%>:
        <%
rs_s.close
set rs_s=nothing
%>
      </td>
      <td bgcolor="#D6DBF7">库存数:
        <input class="wenbenkuang" name="kucun" type="text" id="kucun" value="1" size="5" maxLength="3" onKeyPress    = "return regInput(this,    /^[0-9]*$/,        String.fromCharCode(event.keyCode))"
        onpaste        = "return regInput(this,    /^[0-9]*$/,        window.clipboardData.getData('Text'))"
        ondrop        = "return regInput(this,    /^[0-9]*$/,        event.dataTransfer.getData('Text'))" >
        已销售:
        <input class="wenbenkuang" name="chengjiaocount" type="text" id="chengjiaocount" value="0" size="5" onKeyPress    = "return regInput(this,    /^[0-9]*$/,        String.fromCharCode(event.keyCode))"
        onpaste        = "return regInput(this,    /^[0-9]*$/,        window.clipboardData.getData('Text'))"
        ondrop        = "return regInput(this,    /^[0-9]*$/,        event.dataTransfer.getData('Text'))" readonly>
        送积分:
        <input class="wenbenkuang" name="yeshu" type="text" id="yeshu" value="10" maxLength="2" size="5" onKeyPress    = "return regInput(this,    /^[0-9]*$/,        String.fromCharCode(event.keyCode))"
        onpaste        = "return regInput(this,    /^[0-9]*$/,        window.clipboardData.getData('Text'))"
        ondrop        = "return regInput(this,    /^[0-9]*$/,        event.dataTransfer.getData('Text'))">
      </td>
    </tr>


上面的代码怎么让积分(yeshu)的值和会员价录入的一致
谢谢,大家了
2008-09-12 16:53
sunfishy
Rank: 3Rank: 3
等 级:论坛游侠
威 望:5
帖 子:311
专家分:163
注 册:2007-6-29
收藏
得分:0 
用onchange事件

<input class="wenbenkuang" name="huiyuanjia" type="text" value="10" id="huiyuanjia" size="5" maxLength="8" onKeyPress    = "return regInput(this,    /^\d*\.?\d{0,2}$/,        String.fromCharCode(event.keyCode))"
        onpaste        = "return regInput(this,    /^\d*\.?\d{0,2}$/,        window.clipboardData.getData('Text'))"
        ondrop        = "return regInput(this,    /^\d*\.?\d{0,2}$/,        event.dataTransfer.getData('Text'))"

onchange="form.yeshu.value=form.huiyuanjia.value">

form为表单id.
2008-09-13 17:09
快速回复:急 求助求助!!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.021537 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved