关于ASP幻灯片代码
我在后台添加的产品图片,前台显示不出来,请问这段代码应该怎样改才能显示出来?<%'以下是试用版代码,是固定的代码,只有正式版才可自动从后台数据库中读取图片。piao1="...
我在后台添加的产品图片,前台显示不出来,请问这段代码应该怎样改才能显示出来?
<%
'以下是试用版代码,是固定的代码,只有正式版才可自动从后台数据库中读取图片。
piao1="UploadFiles/2005221123046249.jpg"
piao1url="ProductShow.asp?ID=56"
piaos1="车"
piao2="UploadFiles/200522112347133.jpg"
piao2url="ProductShow.asp?ID=58"
piaos2="车"
piao3="UploadFiles/200522112150931.jpg"
piao3url="ProductShow.asp?ID=59"
piaos3="车"
piao4="UploadFiles/2005221122938373.jpg"
piao4url="ProductShow.asp?ID=57"
piaos4="车"
piao5="UploadFiles/200522111558768.jpg"
piao5url="ProductShow.asp?ID=62"
piaos5="车"
pic=piao1&"|"&piao2&"|"&piao3&"|"&piao4&"|"&piao5
link=piao1url&"|"&piao2url&"|"&piao3url&"|"&piao4url&"|"&piao5url
texts=piaos1&"|"&piaos2&"|"&piaos3&"|"&piaos4&"|"&piaos5
%>
<script language="" type="text/javascript">
<!--
var focus_width=270
var focus_height=210
var text_height=0
var swf_height = focus_height+text_height
var pics='<%=pic%>'
var links='<%=link%>'
var texts='<%=texts%>'
document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#AFDBFE">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed ID="focus_flash" src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#5A9FB5" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
//-->
</script> 展开
<%
'以下是试用版代码,是固定的代码,只有正式版才可自动从后台数据库中读取图片。
piao1="UploadFiles/2005221123046249.jpg"
piao1url="ProductShow.asp?ID=56"
piaos1="车"
piao2="UploadFiles/200522112347133.jpg"
piao2url="ProductShow.asp?ID=58"
piaos2="车"
piao3="UploadFiles/200522112150931.jpg"
piao3url="ProductShow.asp?ID=59"
piaos3="车"
piao4="UploadFiles/2005221122938373.jpg"
piao4url="ProductShow.asp?ID=57"
piaos4="车"
piao5="UploadFiles/200522111558768.jpg"
piao5url="ProductShow.asp?ID=62"
piaos5="车"
pic=piao1&"|"&piao2&"|"&piao3&"|"&piao4&"|"&piao5
link=piao1url&"|"&piao2url&"|"&piao3url&"|"&piao4url&"|"&piao5url
texts=piaos1&"|"&piaos2&"|"&piaos3&"|"&piaos4&"|"&piaos5
%>
<script language="" type="text/javascript">
<!--
var focus_width=270
var focus_height=210
var text_height=0
var swf_height = focus_height+text_height
var pics='<%=pic%>'
var links='<%=link%>'
var texts='<%=texts%>'
document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#AFDBFE">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed ID="focus_flash" src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#5A9FB5" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
//-->
</script> 展开
2个回答
展开全部
我在学ASP,最近才刚弄了下一这个,给个代码给你吧,分享一下快乐
<%
set rs = server.CreateObject("ADODB.Recordset")
sql = "select * from table where pass=1 order by time desc"
rs.open sql,cn,1,1
'循环..
op=1
do while not rs.eof
dizhi=trim(rs("dizhi"))
thusl=trim(rs("url"))
tname=trim(rs("name"))
if op=1 then
picsdd=dizhi
linksd=thusl
textsd=tname
else
picsdd=picsdd+"|"+dizhi
linksd=linksd+"|"+thusl
textsd=textsd+"|"+tname
end if
op=op+1
rs.movenext
loop
rs.close()
set rs=nothing
%>
<SCRIPT type=text/javascript>
var focus_width=240
var focus_height=170
var text_height=24
var swf_height = focus_height+text_height
var pics="<%=picsdd%>"
var links="<%=linksd%>"
var texts="<%=textsd%>"
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="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#E6E6E7">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</SCRIPT>
希望你明白了
<%
set rs = server.CreateObject("ADODB.Recordset")
sql = "select * from table where pass=1 order by time desc"
rs.open sql,cn,1,1
'循环..
op=1
do while not rs.eof
dizhi=trim(rs("dizhi"))
thusl=trim(rs("url"))
tname=trim(rs("name"))
if op=1 then
picsdd=dizhi
linksd=thusl
textsd=tname
else
picsdd=picsdd+"|"+dizhi
linksd=linksd+"|"+thusl
textsd=textsd+"|"+tname
end if
op=op+1
rs.movenext
loop
rs.close()
set rs=nothing
%>
<SCRIPT type=text/javascript>
var focus_width=240
var focus_height=170
var text_height=24
var swf_height = focus_height+text_height
var pics="<%=picsdd%>"
var links="<%=linksd%>"
var texts="<%=textsd%>"
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="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#E6E6E7">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</SCRIPT>
希望你明白了
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
博思aippt
2024-07-20 广告
2024-07-20 广告
作为深圳市博思云创科技有限公司的工作人员,对于Word文档生成PPT的操作,我们有以下建议:1. 使用另存为功能:在Word中编辑完文档后,点击文件->另存为,选择PowerPoint演示文稿(*.pptx)格式,即可将文档内容转换为PPT...
点击进入详情页
本回答由博思aippt提供
展开全部
后台能看,前台看不见,肯定是你的相对路径错了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |