📄 order.htm
字号:
<!--order.htm-->
<HTML><BODY>
Your order currently consists of:<BR>
<SCRIPT>
var i;
var linetotal = 0, subtotal = 0;
for ( i in top.cart)
{
document.write(' Item: '+top.cart[i].name);
document.write(', '+top.cart[i].quantity+' at '+top.cart[i].price);
linetotal = top.cart[i].quantity * top.cart[i].price;
document.write(' each is: '+ linetotal + '<BR>');
subtotal += linetotal;
}
document.write('<BR>Total due is: '+subtotal+'<BR>');
</SCRIPT>
<FORM METHOD="POST"> <! add an ACTION for your server-side program>
<SCRIPT>
var item;
for (i in top.cart)
{
item = '<INPUT TYPE="hidden"' +
' NAME="' + i + '"' +
' VALUE="' + top.cart[i].quantity + '">';
document.write(item);
}
</SCRIPT>
<BR>
Credit Card details (you won't feel a thing)
<INPUT TYPE="text" NAME="card_number">
<INPUT TYPE="submit" VALUE="Buy Now">
</FORM>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -