注册 | 登录 | 设为首页 | 加入收藏
您当前的位置:飞翔学院-IT中国 → 编程开发Asp → 文章内容

我用JS+Cookie编写的购物车,(添加、修改过程在客户端执行,一次提交服务器,IE适用),请大家指正(一)

作者:IT 来源:不详 发布时间:2007-9-2 0:19:17
一、商品列表:list.htm

<html>
<head>
<title>新</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE = "JavaScript" src="orderform_functions.js"></SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
      <form name="form1" method="post" action="">
        <div align="center"><a href="orderform.htm">我的订单</a><br>
        </div>
        <table width="80%" border="1" cellspacing="0" cellpadding="0" align="center">
          <tr>
            <td width="48%"><img src=/html/UploadPic/2007-9/20079201917964.png" width="100" height="100">数量
              <input id="a0001" type="text" name="0001" size="4" value="1" maxlength="5" >
              <input type="button" name="Button6" value="添加" onClick="SetOrderForm('ma001','商品ma001',a0001.value,'46.00')">
            </td>
            <td width="52%"><img src=/html/UploadPic/2007-9/20079201917964.png" width="100" height="100">数量
              <input id="a0002" type="text" name="0002" size="4" value="1">
              <input type="button" name="Button6" value="添加" onClick="SetOrderForm('ma002','商品ma002',a0002.value,'146.00')">
            </td>
          </tr>
          <tr>
            <td width="48%"><img src=/html/UploadPic/2007-9/20079201917964.png" width="100" height="100">数量
              <input id="a0003" type="text" name="0003" size="4" value="1">
              <input type="button" name="Button3" value="添加" onClick="SetOrderForm('ma003','商品ma003',a0003.value,'1000.60')">
            </td>
            <td width="52%"><img src=/html/UploadPic/2007-9/20079201917964.png" width="100" height="100">数量
              <input id="a0004" type="text" name="0004" size="4" value="1">
              <input type="button" name="Button4" value="添加" onClick="SetOrderForm('ma004','商品ma004',a0004.value,'5.50')">
            </td>
          </tr>
          <tr>
            <td width="48%"><img src=/html/UploadPic/2007-9/20079201917964.png" width="100" height="100">数量
              <input id="a0005" type="text" name="0001" size="4" value="1" maxlength="5" >
              <input type="button" name="Button6" value="添加" onClick="SetOrderForm('ma005','商品ma005',a0005.value,'46.00')">
            </td>
            <td width="52%"><img src=/html/UploadPic/2007-9/20079201917964.png" width="100" height="100">数量
              <input id="a0006" type="text" name="0002" size="4" value="1">
              <input type="button" name="Button6" value="添加" onClick="SetOrderForm('ma006','商品ma006',a0006.value,'146.00')">
            </td>
          </tr>
          <tr>
            <td width="48%"><img src=/html/UploadPic/2007-9/20079201917964.png" width="100" height="100">数量
              <input id="a0007" type="text" name="0003" size="4" value="1">
              <input type="button" name="Button3" value="添加" onClick="SetOrderForm('ma007','商品ma007',a0007.value,'1000.60')">
            </td>
            <td width="52%"><img src=/html/UploadPic/2007-9/20079201917964.png" width="100" height="100">数量
              <input id="a0008" type="text" name="0004" size="4" value="1">
              <input type="button" name="Button4" value="添加" onClick="SetOrderForm('ma008','商品ma008',a0008.value,'5.50')">
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
</table>
</body>
</html>
http://www.itcnw.com/
  • 打印文档
  • 推荐好友
  • 返回顶部
  • 增大字体
  • 减少字体
关于本站 | 工作机会 | 合作网站 | 广告服务 | 市场合作| 联系我们 | 抽奖活动
版权所有: 武汉威俊科技有限公司 Copyright 2005-2007 www.ITCNW.COM All rights reserved