现在的js代码可以实现图片的切换显示,但是图片是固定的,怎样实现图片的动态显示,就是后台发布后在前台切换显示,谢谢!
谢谢!但是我的asp嵌入js中总是错误,下面是我的代码,麻烦给看一下,谢谢!
<!--#include file="inc/conn_index.asp"-->
<%
dim photors(2)
sql="select top 3 uploadfiles from article where uploadfiles <> ''"
set rs=conn.execute(sql)
for i=1 to 3
photors(i-1)=right(rs("uploadfiles"),len(rs("uploadfiles"))-3)
rs.movenext
next
response.write photors(0)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0028)http://www.yncg.com/home.htm -->
<%Response.Expires=0%><HTML><HEAD><TITLE>ff</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language=JavaScript>
<!-- // BannerAD
var bannerAD=new Array();
var bannerADlink=new Array();
var adNum=0;
bannerAD[0]="photors(0)";
bannerADlink[0]="";
bannerAD[1]="photors(1)";
bannerADlink[1]="";
bannerAD[2]="photors(2)";
bannerADlink[2]="";
[此贴子已经被作者于2006-3-21 8:31:50编辑过]