js代码中包含asp语句,该怎么写?如下,我可能写错了,该怎么改呢,很短的代码。
<tr><%setrs_1=server.createobject("adodb.recordset")sql_1="select*fromlunbowhereid=1"...
<tr>
<% set rs_1=server.createobject("adodb.recordset")
sql_1="select * from lunbo where id=1"
rs_1.open sql_1,conn,3,3
%>
<td width="447" height="260">
<script language='javascript'>
linkarr = new Array();
picarr = new Array();
textarr = new Array();
var swf_width=445;
var swf_height=260;
var files = "";
var links = "";
var texts = "";
//这里设置调用标记
linkarr[1] = "<%=rs_1("lunbo_lianjie1")%>";
picarr[1] = "admin/lunbo/<%=rs_1("lunbo_images1")%>";
linkarr[2] = "<%=rs_1("lunbo_lianjie2")%>";
picarr[2] = "admin/lunbo/<%=rs_1("lunbo_images2")%>";
linkarr[3] = "<%=rs_1("lunbo_lianjie3")%>";
picarr[3] = "admin/lunbo/<%=rs_1("lunbo_images3")%>";
for(i=1;i<picarr.length;i++){
if(files=="") files = picarr[i];
else files += "|"+picarr[i];
}
for(i=1;i<linkarr.length;i++){
if(links=="") links = linkarr[i];
else links += "|"+linkarr[i];
}
for(i=1;i<textarr.length;i++){
if(texts=="") texts = textarr[i];
else texts += "|"+textarr[i];
}
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="images/bcastr3.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');
document.write('<embed src="images/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="#.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</script>
</td>
<%
rs_1.close
%>
</tr>
这段js代码是轮播图片的,客户想要在后台更改,该怎么改,谢谢! 展开
<% set rs_1=server.createobject("adodb.recordset")
sql_1="select * from lunbo where id=1"
rs_1.open sql_1,conn,3,3
%>
<td width="447" height="260">
<script language='javascript'>
linkarr = new Array();
picarr = new Array();
textarr = new Array();
var swf_width=445;
var swf_height=260;
var files = "";
var links = "";
var texts = "";
//这里设置调用标记
linkarr[1] = "<%=rs_1("lunbo_lianjie1")%>";
picarr[1] = "admin/lunbo/<%=rs_1("lunbo_images1")%>";
linkarr[2] = "<%=rs_1("lunbo_lianjie2")%>";
picarr[2] = "admin/lunbo/<%=rs_1("lunbo_images2")%>";
linkarr[3] = "<%=rs_1("lunbo_lianjie3")%>";
picarr[3] = "admin/lunbo/<%=rs_1("lunbo_images3")%>";
for(i=1;i<picarr.length;i++){
if(files=="") files = picarr[i];
else files += "|"+picarr[i];
}
for(i=1;i<linkarr.length;i++){
if(links=="") links = linkarr[i];
else links += "|"+linkarr[i];
}
for(i=1;i<textarr.length;i++){
if(texts=="") texts = textarr[i];
else texts += "|"+textarr[i];
}
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="images/bcastr3.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');
document.write('<embed src="images/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="#.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</script>
</td>
<%
rs_1.close
%>
</tr>
这段js代码是轮播图片的,客户想要在后台更改,该怎么改,谢谢! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询