asp购物车代码出错
<!--#includefile="conn.asp"--><!--#includefile="config.asp"--><%SubPutToShopBag(ProdN...
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<%
Sub PutToShopBag( ProdNum, ProductList )
If Len(ProductList) = 0 Then
ProductList = ProdNum
ElseIf InStr( ProductList, ProdNum ) <= 0 Then
ProductList = ProductList & "," & ProdNum
session(ProdNum)=0
End If
End Sub
%>
<html>
<style type="text/css">
<!--
.STYLE7 {
font-size: 16px;
color: #FF0000;
}
-->
</style>
<head>
<title>餐车-<%=sitename%>-<%=siteurl%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Robots" content="index,follow">
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
.STYLE2 {color: #333333; font-weight: bold; }
.STYLE3 {color: #333333}
.STYLE4 {color: #FF6600}
body {
background-color: #FFFFFF;
}
.STYLE6 {
font-size: 24px;
font-weight: bold;
color: #FF0000;
}
.STYLE8 {color: #0000FF}
-->
</style>
<script>
function goWeb(url)
{
window.open(url);
}
</script>
</head>
<body bgcolor="#FFFFFF">
<SCRIPT LANGUAGE="JavaScript1.2">
adTime=10; // seconds ad reminder is shown
chanceAd=1; // ad will be shown 1 in X times (put 1 for everytime)
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
adCount=0;
function initAd(){
if(!ns && !ie && !w3) return;
if(ie) adDiv=eval('document.all.sponsorAdDiv.style');
else if(ns) adDiv=eval('document.layers["sponsorAdDiv"]');
else if(w3) adDiv=eval('document.getElementById("sponsorAdDiv").style'); 展开
<!--#include file="config.asp"-->
<%
Sub PutToShopBag( ProdNum, ProductList )
If Len(ProductList) = 0 Then
ProductList = ProdNum
ElseIf InStr( ProductList, ProdNum ) <= 0 Then
ProductList = ProductList & "," & ProdNum
session(ProdNum)=0
End If
End Sub
%>
<html>
<style type="text/css">
<!--
.STYLE7 {
font-size: 16px;
color: #FF0000;
}
-->
</style>
<head>
<title>餐车-<%=sitename%>-<%=siteurl%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Robots" content="index,follow">
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
.STYLE2 {color: #333333; font-weight: bold; }
.STYLE3 {color: #333333}
.STYLE4 {color: #FF6600}
body {
background-color: #FFFFFF;
}
.STYLE6 {
font-size: 24px;
font-weight: bold;
color: #FF0000;
}
.STYLE8 {color: #0000FF}
-->
</style>
<script>
function goWeb(url)
{
window.open(url);
}
</script>
</head>
<body bgcolor="#FFFFFF">
<SCRIPT LANGUAGE="JavaScript1.2">
adTime=10; // seconds ad reminder is shown
chanceAd=1; // ad will be shown 1 in X times (put 1 for everytime)
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
adCount=0;
function initAd(){
if(!ns && !ie && !w3) return;
if(ie) adDiv=eval('document.all.sponsorAdDiv.style');
else if(ns) adDiv=eval('document.layers["sponsorAdDiv"]');
else if(w3) adDiv=eval('document.getElementById("sponsorAdDiv").style'); 展开
1个回答
2008-09-21
展开全部
数据库要建立一张购物车表。关联商品和客户表。
代码用window.open就可以了吧。然后其他属性去找下估计都有。
代码用window.open就可以了吧。然后其他属性去找下估计都有。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询