设为首页收藏本站

新微赢技术网

 找回密码
 注册
搜索
热搜: 回贴
查看: 80|回复: 2
打印 上一主题 下一主题

一个asp问题,急,急,急啊。

[复制链接]
跳转到指定楼层
1#
发表于 2008-12-20 11:00:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
<!--#include file=li_conn.asp-->
<SCRIPT>var NowFrame = 1;var MaxFrame = 5;var bStart = 0;function fnToggle(){var next = NowFrame + 1;if(next == MaxFrame+1) {NowFrame = MaxFrame;next = 1;}if(bStart == 0){bStart = 1;setTimeout('fnToggle()', 2000);return;}else{oTransContainer.filters[0].Apply();document.all['oDIV'+next].style.display = "";document.all['oDIV'+NowFrame].style.display = "none";oTransContainer.filters[0].Play(duration=2);if(NowFrame == MaxFrame){NowFrame = 1;}else{NowFrame++;}} setTimeout('fnToggle()', 6000);}fnToggle();</SCRIPT>

<DIV id=oTransContainer style="FILTER: progidXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0, motion='forward'); WIDTH: 300px; HEIGHT: 50px">
<%
set rs=server.CreateObject("ADODB.RecordSet"
sql="select Top 5 * from Article order by UpdateTime desc"
rs.Open sql,conn,1,1
%>
<%
do while not rs.eof
%>
<table width="300" height="50" border="0" cellpadding="0" cellspacing="0" id=oDIV<%=i%> style="" <% else %> style="DISPLAY: none" <% end if %>>
<tr>
<td><%if len(trim(rs("Title"))>24 then
response.write left(trim(rs("Title"),24)
else
response.write trim(rs("Title")
end if%></td>
</tr>
</table>
<%
rs.movenext
loop
rs.close
%>
</div>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

申请友链|小黑屋|最新主题|手机版|新微赢技术网 ( 苏ICP备08020429号 )  

GMT+8, 2024-11-18 10:28 , Processed in 0.076928 second(s), 9 queries , Gzip On, Memcache On.

Powered by xuexi

© 2001-2013 HaiAn.Com.Cn Inc. 寰耽

快速回复 返回顶部 返回列表