Ⅰ 求J2EE做一個簡單的購物車系統 servlet+javabean+html的最好,謝謝!
老兄,既然簡單,何不自己動手呢,豈不更有感覺。知道原理,這功能做起來不難。要內html是做什麼用,動態語言里容面,他只能做靜態頁面。寫一些js,提交表單,僅此而以,後台的值它一樣都獲取不了。
購物車,說白了就是伺服器內存裡面的一個對象,然後到客戶端去顯示。當然也可以永遠的保存到資料庫,這里就不說了。它可以是List,也可以是Set,可以put(商品),也可以remove(商品),還可以clear(商品),對象存放於session,隨時可以取用
Ⅱ 哪裡可以下載到免費的購物車網頁模板和源代碼
免費模板素材網上有啊。版權。http://hi..com/mianfeimoban/blog/item/4947eb0b576dfe26e92488bd.html
Ⅲ 求簡單的HTML模板,適合初學者的,種類多點,謝謝
這是我們學校的 Html 實驗指導書,難度較低,適合初學者!
Ⅳ 求html購物車代碼,,效果如圖顯示
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<title>修改訂單</title>
<styletype="text/css">
body{
font-size:13px;
line-height:25px;
}
table{
border-top:1pxsolid#333;
border-left:1pxsolid#333;
width:400px;
}
td{
border-right:1pxsolid#333;
border-bottom:1pxsolid#333;
text-align:center;
}
.title{
font-weight:bold;
background-color:#cccccc;
}
inputtext{
width:100px;
}
</style>
<scripttype="text/javascript">
functionaddRow(){
//行的長度
varrowlength=document.getElementById("order").rows.length;
//得到整個表格對象
varorder=document.getElementById("order").insertRow(rowlength-1);
order.id=rowlength-1;
//插入列
varcel1=order.insertCell(0).innerHTML="游戲光碟";
varcel2=order.insertCell(1).innerHTML="34";
varcel3=order.insertCell(2).innerHTML="¥58.40";
varcel4=order.insertCell(3).innerHTML="<inputtype="button"value="刪除"onclick="delRow('"+(rowlength-1)+"')"/>"+"<inputtype="button"value="修改"onclick="editRow('"+(rowlength-1)+"')"/>"
}
functiondelRow(qwe){
=document.getElementById(qwe).rowIndex;
document.getElementById("order").deleteRow(ewq);
}
functioneditRow(rowID){
varrow=document.getElementById(rowID);
varcel=row.cells;
vartext=cel[1].innerHTML;
cel[1].innerHTML="<inputtype='text'value='"+text+"'style='width:40px;'>"
cel[3].lastChild.value="確定";
cel[3].lastChild.setAttribute("onclick","update('"+rowID+"')");
}
functionupdate(qwe){
varrow=document.getElementById(qwe);
varcel=row.cells;
vartext=cel[1].lastChild.value;
cel[1].innerHTML=text;
cel[3].lastChild.value="修改";
cel[3].lastChild.setAttribute("onclick","editRow('"+qwe+"')");
}
/*
functionadd(){
vara=document.getElementById("order").rows.length;
varb=document.getElementById("order").insertRow(a-1);
varone1=b.insertCell(0).innerHTML="123";
}
*/
</script>
</head>
<body>
<tableborder="0"cellspacing="0"cellpadding="0"id="order">
<trclass="title">
<td>商品名稱</td>
<td>數量</td>
<td>價格</td>
<td>操作</td>
</tr>
<trid="1">
<td>防滑真皮休閑鞋</td>
<td>12</td>
<td>¥568.50</td>
<td><inputname="rowdel"type="button"value="刪除"onclick='delRow("1")'/>
<inputid="edit1"type="button"value="修改"onclick='editRow("1")'/></td>
</tr>
<tr>
<tdcolspan="4"style="height:30px;">
<inputname="addOrder"type="button"value="增加訂單"onclick="addRow()"/></td>
</tr>
</table>
</body>
</html>
這個是我原來上學的時候練習的代碼,練習的是基礎的jsDOM操作,不過建議以後用Jquery 比較方便 有什麼不懂得可以問我
Ⅳ 各位大神 跪求一個超級簡單的 html 做的個人模板 很簡單很簡單就行
http://wenku..com/view/41616d2bed630b1c59eeb594.html
http://wenku..com/view/1861c537b90d6c85ec3ac672.html
http://wenku..com/view/28aa28ec998fcc22bcd10d8b.html
http://wenku..com/view/0798c637b90d6c85ec3ac695.html
上邊4個全都是PPT圖文詳細教程,看完了應該簡單的沒問題
Ⅵ JS代碼 做一個簡易的購物車 效果圖如下
樓主是想要點擊合計就是出數值還是什麼?如果說點擊合計就算出值的話如下
<tablewidth="400"border="1">
<tr>
<throws="5">簡易購物車</th>
</tr>
<tr>
<td>商品名稱</td>
<td>數量(件)</td>
<td>單價(美元)</td>
<td>運費(美元)</td>
<td><buttononclick="fun()">合計</button></td>
</tr>
<tr>
<td><inputtype="text"name="goodsName"/></td>
<td><inputtype="text"name="num"id="num"/></td>
<td><inputtype="text"name="price"id="price"/></td>
<td><inputtype="text"name="freight"id="freight"/></td>
<td><inputtype="text"name="total"id="total"/></td>
</tr>
</table>
<script>
functionfun(){
varnum=document.getElementById("num").value;
varprice=document.getElementById("price").value;
varfreight=parseInt(document.getElementById("freight").value);
vartotal=(price*num)+freight;
document.getElementById("total").value=total;
}
</script>
Ⅶ 急求簡單html模板
要什麼樣的 主要什麼內容的
Ⅷ 在HTML里用javascript做一個簡單購物車部分
給樓主做了一個,JS實現商品計數的加和減,最少不能少於1,最多不大於99,代碼裡面有注釋,方面樓主查看和使用。
Ⅸ 求一個HTML商務型網站模板,購物類型的,擁有購物車功能的
沒有,找了很久了,只有單獨的JS購物車系統,其他頁面和功能需要自己寫。
Ⅹ 想做一個簡單的購物車界面,非常簡單就行有代碼!用div+css做就可以
購物車外是可以的 但是核心最好還是用程序本來的核心如果自己寫,很有單獨