幻灯片替换的问题-求大虾们帮忙看看
--------------------编程问答-------------------- 把原来的代码换成一个for很难么? --------------------编程问答-------------------- 后台输出数据imgUrl6等通过XML配置,修改XML
--------------------编程问答--------------------
能不能直接改代码的这种 --------------------编程问答-------------------- 换成 for 写在后台 定义一个 变量保存这些东西 前台<%=""> --------------------编程问答--------------------
不会,程序是别人写的,所以不会,就想在前台把这改了 --------------------编程问答--------------------
后台不知道怎么搞,还是前台搞定算了 --------------------编程问答-------------------- 搞拼接嘛 --------------------编程问答-------------------- <%=HH1%>
-------------------------------
SqlDataReader sdr =。。。。。
while (sdr.Read())
{
HH1 += "<li><a href=" + abc + " target=_blank><IMG alt=" + sdr["x_name"].ToString() + " src=" + sdr["x_images"].ToString() + "></a></li>\n";
} --------------------编程问答-------------------- var swf_width=220
var swf_height=220
var files='<%=HH1%>'
var links=‘<%=HH2%>’
var texts='<%=HH3%>‘
==============================
--------------------编程问答--------------------
小弟不是很懂程序,只是帮朋友修改一下,能直接拿上面的代码帮忙改一下,小弟感激不尽 --------------------编程问答-------------------- <script type="text/javascript">
<%sql="select top 6 * from model_content where pid=75 and cid=467 order by id desc"
rs.open sql,cnstr,1,2
while not eof
imgurl=imgurl+"after/uploadfile/"+rs("titleimg")+"|"
imgtext=imgtext+rs("title")+"|"
imgLink=imgLink+rs("Content")+"|"
rs.movenext
wend
imgurl=left(imgurl,len(imgurl)-1)
imgtext=left(imgtext,len(imgtext)-1)
imgLink=left(imgurl,len(imgLink)-1)
rs.close%>
var focus_width=872
var focus_height=454
var text_height=0
var swf_height = focus_height+text_height
var pics=<%=imgurl%>
var links=<%=imgtext%>
var texts=<%=imgLink%>
--------------------编程问答-------------------- 纠正
imgLink=left(imgLink,len(imgLink)-1) --------------------编程问答--------------------
改成这样,失败了~~~
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>--------------------编程问答-------------------- 在线等~~~~~~~~~ --------------------编程问答-------------------- 可能原因:
<!--#include file="Connections/conn.asp" -->
<%dim rs,sql '区分大小写
Set rs =Server.CreateObject("ADODB.RecordSet")
%>
<script type="text/javascript">
<%sql="select top 8 * from model_content where pid=75 and cid=467 order by id desc"
rs.open sql,cnstr,1,2
while not eof
imgurl=imgurl+"after/uploadfile/"+rs("titleimg")+"|"
imgtext=imgtext+rs("title")+"|"
imgLink=imgLink+rs("Content")+"|"
rs.movenext
wend
imgurl=left(imgurl,len(imgurl)-1)
imgtext=left(imgtext,len(imgtext)-1)
imgLink=left(imgLink,len(imgLink)-1)
rs.close%>
var swf_width=872
var swf_height=454
var text_height=0
var swf_height = focus_height+text_height
var files=<%=imgurl%>
var link=<%=imgLink%>
var texts=<%=imgtext%>
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="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</script>
1.路径不对
2.图片的格式不对,以上代码只支持JPG格式
补充:.NET技术 , ASP.NET