这一块怎么做的啊,用c#写在asp.net上实现,谢谢大家有分哦 50
2个回答
2016-05-10
展开全部
<%
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>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询