28,409
社区成员




<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>
<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个就显示有几个的图
Sql_Img="Select Top 5 * From Img Where Img<>''"
Set Rs_Img=Conn.ExeCute(Sql_Img)
If Not Rs_Img.EoF Then
Do While Not Rs_Img.Eof
pic_p=pic_p&Rs_Img("Img")&"|"
text_t=text_t&Rs_Img("images_Txt")&"|"
links=links&Rs_Img("images_Url")&"|"
Rs_Img.MoveNext
Loop
pic_p=left(pic_p,len(pic_p)-1)
text_t=left(text_t,len(text_t)-1)
links=left(links,len(links)-1)
Else
response.write("给张默认图片")
End If
%>
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>
<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个就显示有几个的图
Sql_Img="Select Top 5 * From Img Where Img<>''"
Set Rs_Img=Conn.ExeCute(Sql_Img)
If Not Rs_Img.EoF Then
Do While Not Rs_Img.Eof
pic_p=Pic&Rs_Img("Img")&"|"
text_t=Urls&Rs_Img("images_Txt")&"|"
links=Names&Rs_Img("images_Url")&"|"
Rs_Img.MoveNext
Loop
pic=left(pic,len(pic)-1)
Urls=left(Urls,len(Urls)-1)
Names=left(Names,len(Names)-1)
Else
response.write("给张默认图片")
End If
%>
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>