商业敏感度培训:关于asp编程

来源:百度文库 编辑:神马品牌网 时间:2024/05/01 23:37:35
有谁能给我一个,完全独立的图片新闻模块(要求是,能够在前台浏览动态的图片新闻,在后台可以添加图片.)而且在前台图片可以是滚动的
pop_wuhu
你能不能把后台的一起给我啊,因为我还是个莱鸟。谢谢!

前台.asp
<table width="210" border="0" cellpadding="0" cellspacing="0" bgcolor="#F9F9F9">
<tr><td >
<marquee id="scrollarea" direction="up" scrolldelay="200" scrollamount="2" width="200" height="150" onmouseover="this.stop();" onmouseout="this.start();">
<p>
<table width="200" border=0 cellpadding=0 cellspacing="0">
<%
set rs=server.createobject("adodb.recordset")
i=0

MaxShangpinList=6

sql="SELECT * FROM newsimages order by id desc"
rs.Open sql,conn,1,1
%>
<%
do while not rs.eof
i=i+1
%>
<tr><td width="200" valign="top" class="text9pt2"><%=rs("图片路径")%><br><br>
<%
if (i mod (MaxShangpinList/4)=0) and i>=(MaxShangpinList/4) then
%>
<%
end if
if i>=MaxShangpinList then exit do
rs.movenext
loop
rs.close
%>
</td>
</tr>
</table>
</p>
</marquee></td></tr></table>

后台的你做一个添加图片路径的页面。