最好能给我写点代码!!!
<script language="JavaScript">
var tupian=new Array();
var tupianlink=new Array();
var adNum=-1;
<%dim num
set rs=server.createobject("adodb.recordset")
sql="select * from ad order by id desc"
rs.open sql,conn,1,1
num=0
do while not rs.eof
%>
tupianlink[<%=num%>]="";
tupian[<%=num%>]="<%=rs("url")%>";
<%num=num+1
rs.movenext
loop
rs.close
set rs=nothing
%>
var currentimage=new Array();
for (i=1;i<=7;i++){currentimage[i]=new Image();
currentimage[i].src=tupian[i];
}
function setCo(){ if (document.all)
{ tupianrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
tupianrotator.filters.revealTrans.apply(); }
}
function playCo()
{ if (document.all) tupianrotator.filters.revealTrans.play()
}function nextAd(){ if(adNum<tupian.length-1)adNum++ ;
else adNum=0;
setCo();
document.images.tupianrotator.src=tupian[adNum];
playCo();
theTimer=setTimeout("nextAd()", 4000);}
function linkurl(){ jumpUrl=tupianlink[adNum];
jumpTarget='_blank';
if (jumpUrl != ''){ if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}}
function listMsg()
{ status=tupianlink[adNum];
document.returnValue = true;}document.write('<a onMouseOver="listMsg();return document.returnValue" href="javascript:linkurl()" target="_self">');
document.write('<img style="FILTER: revealTrans(duration=2,transition=20,border:1px solid #000000" src="javascript:nextAd()" width="369" height="209" border=0 name=tupianrotator></a>');
</script>