其实是个仿flash的。就是一张一张的图片循环出现,一般大家都是用flash做的,下面是俺的代码,他的效果是把第一张图片可以显示出来,但就不动了
<!--#include file="conn.asp"-->
<%
sql="select * from table1 order by id desc"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,3,3
rs.movefirst
i=0
%>
<script language="javascript">
function play()
{
<%
i=i+1
if i=6 then
i=0
rs.movefirst
end if
pic=rs("pic")
url=rs("url")
alt=rs("alt")
rs.movenext
%>
}
</script>
<body onLoad="javascript:return setInterval('play()',1000);">
<table width="100%" border="5" align="center" cellpadding=0 cellspacing=0 bordercolorlight="#73B300" bordercolordark="#C5FF59" bgcolor="#73B300">
<tr>
<td align=middle
height=191> <table cellpadding=0 cellspacing=0 border=0 align=center>
<tr>
<td height="191" align="center" bgcolor="#000000"><a href="<%=url%>"><img src=<%=pic%> alt=<%=alt%> name=imgInit width=240 height=190 border=0 style="FILTER: revealTrans(duration=2,transition=120);border-color:white;color:#ffffff"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" bgcolor="#666666" align="center"></td>
</tr>
<tr>
<td height=30 align="center" bgcolor="#609300"><a href="goUrl()">
<strong><font color="#FFFFFF">
<div id="myou" align="center"></div>
</font></strong> </a></td>
</tr>
</table>
</body>