请教大家,下面的JS怎么调用的时候出错呢?
云原生商店 2005-03-07 01:33:12 请教大家,下面的JS怎么调用的时候出错呢?
<!'显示书籍的信息,提供js调用-->
<link href='style.css' rel='stylesheet' type='text/css'>
<!--#include file='inc/conn.asp'-->
<%
dim showstr
'书籍照片的路径
dim bookpicpath
'书籍的介绍
dim bookinf
set rs=server.CreateObject("adodb.recordset")
rs.open "select top 2 id,detail,discount,vipprice,author,desc,price1,price2,name,pic,mark from product order by id
desc",conn,1,1
if rs.eof and rs.bof then
response.write " 对不起,暂时还没有商品!"
end if
i=0
do while not rs.eof
bookpicpath=trim(rs("pic"))
bookinf=trim(rs("desc"))
showstr=showstr&"<table width=176 border=0 cellspacing=0 cellpadding=0 >"&"<tr><td width=50% height=132><table width=100%
height=54% border=0 cellpadding=0 cellspacing=0><tr><td colspan=2 rowspan=2 valign=top><img src="&bookpicpath&" width=85
height=125></td><td width=3 height=3></td></tr><tr><td width=3 height=122 bgcolor='#CCCCCC'></td></tr><tr><td width=9
height=2></td><td width=76 bgcolor='#CCCCCC'></td><td width=3 bgcolor='#CCCCCC'></td></tr></table></td><td width='50%'
class='bookinfo'>"&bookinf&".....</td></tr></table>"
rs.movenext
loop
rs.close
response.write(showstr)
%>
我调用的时候是这样的:
<script language='JavaScript' type='text/JavaScript' src='bookshop/showbook_js.asp'></script>
结果就是“网页上有错误”
怎么解决呢?