急!!!flash动态显示图片

yuzhouer1122 yuzhouer1122 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我在网上下了个利用flash动态显示图片,可是还不知道怎么用asp写查询来添加图片到flash里
小弟新手 不是很懂,还望大家指点~

<SCRIPT type=text/javascript>
<!--

var focus_width=280
var focus_height=200
var text_height=20
var swf_height = focus_height+text_height

<%
'这里如何用ASP写查询代码?最多显示5个图片。没超过5个就显示有几个的图
%>
var pics='<%=pic_p%>'; //图片位置
var texts='<%=text_t%>'; //title新闻标题
var links='<%=links%>'; //连接地址

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="image/pixviewer1.swf"><param name="quality" value="high"><param name="bgcolor" value="#E5E5EB">');
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="image/pixviewer1.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#E5E5EB" 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>
...全文
评论 7
收藏 已收藏
分享
返回顶部
yuzhouer1122
ASP 28,401 成员 356,940 内容