ASP动态生成焦点图片的问题
老是报错,有没有高手帮我看下,是怎么回事!有点急诚请高手回答下哦
<DIV id=tra_flash>
//pics += "../upimages/" + read1["picture"].ToString() + "|";
//texts += read1["title"].ToString() + "|";
//links += "../news/html/" + read1["url_name"].ToString() + "|";
<%
sql_ad="select top 10 id,FirstImageName,Title from news order by id desc"
set rs_ad=server.CreateObject("adodb.recordset")
rs_ad.open sql_ad,conn,1,1
if rs_ad.recordcount<>0 then
%>
<SCRIPT language=javascript type=text/javascript>
pics=new Array();
texts=new Array();
links=new Array();
<!--
//slideimages数组为变换的图
//var pics="images/01.jpg|images/02.jpg|images/03.jpg|images/04.jpg|images/05.jpg";
<%
for i=1 to rs_ad.recordcount
%>
//var pics += "/UploadFiles/" + "<%=rs_ad(2)%>" + "|";
//var texts += "<%=rs_ad(3)%>" + "|";
//var links +="shownew.asp?id=<%=rs_ad(0)%> + "|""
var pics += "/UploadFiles/" + "<%=rs_ad(2)%>";
var texts += "<%=rs_ad(3)%>";
var links +="shownew.asp?id=<%=rs_ad(0)%>
<%
rs_ad.movenext
next
%>
<%
if rs_ad.recordcount=1 then
%>
var pics=pics[1];
var texts=texts[1];
var links=links[1];
<%
elseif rs_ad.recordcount=2 then
%>
var pics=pics[1]+"|"+pics[2];
var texts=texts[1]+"|"+texts[2];
var links=links[1]+"|"+links[2];
<%
else
%>
var pics=pics[1]+"|";
var texts=texts[1]+"|";
var links=links[1]+"|";
<% for s=2 to rs_ad.recordcount-1 %>
pics=pics+pics[<%=s%>]+"|";
texts=texts+texts[<%=s%>]+"|";
links=links+links[<%=s%>]+"|";
<%next%>
pics=pics+pics[<%=rs_ad.recordcount%>];
texts=texts+texts[<%=rs_ad.recordcount%>];
links=links+links[<%=rs_ad.recordcount%>];
<% end if
%>
var slideimages=FirstImageName.split("|");
//slidetext数组为变换的文字
//var texts="图说明文字1|图说明文字2|图说明文字3|图说明文字4|图说明文字5";
var slidetext=title.split("|");
//slidetext数组为点击大图后跳到的地址
//var links="http://www.baidu.com/|http://www.baidu.com/|http://www.baidu.com/|http://www.baidu.com/|http://www.baidu.com/";
var slidelinks=links.split("|");
-->
</SCRIPT>
<SCRIPT src="../img/5adpics.html" type=text/javascript></SCRIPT>
<A style="CURSOR: hand" onfocus=this.blur() onclick=gotoshow()
target=_blank><IMG id=slide style="FILTER: BlendTrans(enabled=true,percent=10)"
height=210 src="../img/blank.jpg" width=355 border=0> </A>
<DIV class=pnews_tb_padding>
<DIV class=pnews_tb_right>
<UL id=xiaosan>
<LI><IMG onmousemove=chki(0); src="../img/ns_1.jpg"> </LI>
<LI><IMG onmousemove=chki(1); src="../img/ns_2.jpg"> </LI>
<LI><IMG onmousemove=chki(2); src="../img/ns_3.jpg"> </LI>
<LI><IMG onmousemove=chki(3); src="../img/ns_4.jpg"> </LI>
<LI><IMG onmousemove=chki(4); src="../img/ns_5.jpg"> </LI></UL></DIV>
<DIV class=pnews_tb_left>
<DIV id=textslide></DIV> <!--文字描述显示地方-->
</DIV></DIV>
<%
else
'没有添加广告时显示下面的图片
%>
<img src="images/01.jpg">
<%
end if
rs_ad.close
%>
<SCRIPT language=JavaScript>
<!--
rotateStart();
//-->
</SCRIPT>
[ 本帖最后由 dou521 于 2010-3-26 11:23 编辑 ]