主题:菜鸟求组:focus.swf幻灯片静态显示正常,从数据库调入时就不显示图了.
请教各位大侠帮助解决下,,非常感谢 .
具体代码:
------------------------------->
<!--#include file="include/conn.asp"-->
<script type="text/javascript">
var pics='',links='',texts=''
<%
set rs=server.createobject("adodb.recordset")
sql="select top 6 * from news where firstimagename<> '' order by id desc"
rs.open sql,conn,1,1
if rs.eof then
response.write " <div align='center'>ûÓÐÐÂÎÅ!</div>"
end if
do while not rs.eof
%>
pics=pics+'uppic/<%=rs("firstimagename")%>'
links=links+'onews.asp?id=<%=rs("id")%>'
texts=texts+'<%=rs("title")%>'
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
var focus_width=688
var focus_height=241
var text_height=20
var swf_height = focus_height+text_height
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="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#7BBDFF">');
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="images/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#7BBDFF" 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>
------------------------->
谢谢各位..
具体代码:
------------------------------->
<!--#include file="include/conn.asp"-->
<script type="text/javascript">
var pics='',links='',texts=''
<%
set rs=server.createobject("adodb.recordset")
sql="select top 6 * from news where firstimagename<> '' order by id desc"
rs.open sql,conn,1,1
if rs.eof then
response.write " <div align='center'>ûÓÐÐÂÎÅ!</div>"
end if
do while not rs.eof
%>
pics=pics+'uppic/<%=rs("firstimagename")%>'
links=links+'onews.asp?id=<%=rs("id")%>'
texts=texts+'<%=rs("title")%>'
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
var focus_width=688
var focus_height=241
var text_height=20
var swf_height = focus_height+text_height
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="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#7BBDFF">');
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="images/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#7BBDFF" 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>
------------------------->
谢谢各位..