<!--#include file="conn/conn_index.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
</HEAD>
<BODY>
<TABLE width=357 height=142 border=0 align="center" cellPadding=0 cellSpacing=0 bgColor=#cccccc>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=0 width=357 bgColor=#ffffff border=0>
          <TBODY>
        <TR>
          <TD>
<SCRIPT language=JavaScript>
var elady_step=3;	//1:small, 3:middle, 5:big
var elady_speed=50;	//20:fast, 50:middle, 80:slow
var e_tp=new Array();
var e_tplink=new Array();
var adNum_elady1=0;  
var elady_stop_sh=0;
var elady_star_sh=1;

function elady1_moveImg(){
if ((!document.all&&!document.getElementById)||(elady_stop_sh==0))	return;
if (elady_star_sh==1){
	document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)+elady_step;}
else if (elady_star_sh==2){
	document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)+elady_step;}
else if (elady_star_sh==3){
	document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)-elady_step;}
else{
	document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)-elady_step;}
if (elady_star_sh<4)	elady_star_sh++;
else	elady_star_sh=1;
setTimeout("elady1_moveImg()",elady_speed);}
<%
	set rs_user = server.CreateObject("adodb.recordset")
	sql="select * from [float_ad] where ttype=1 order by id desc"
	rs_user.Open sql,conn,1,1
	if rs_user.EOF or rs_user.BOF then
%>
e_tplink[0]="http://www.wishcn.com/";
e_tp[0]="images/banner_01.jpg";
e_tplink[1]="http://www.wishcn.com";
e_tp[1]="images/banner_02.jpg";
<%
	else
	i=0
	do while not rs_user.eof
%>
e_tplink[<%= i %>]="<%=rs_user("linkurl")%>";
e_tp[<%= i %>]="<%=rs_user("photourl")%>";
<%
	rs_user.movenext
	i=i+1
	loop
	end if
	rs_user.close
	set rs_user=nothing
	conn.close
	set conn=nothing
%>
var currentimage=new Array();   
for (i=0;i<=3;i++){currentimage[i]=new Image();
      currentimage[i].src=e_tp[i];
         }
         function elady1_set(){   if (document.all)
         {      e_tprotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
               e_tprotator.filters.revealTrans.apply();   }
               }
               function elady1_playCo()
               {   if (document.all)      e_tprotator.filters.revealTrans.play()
               }function elady1_nextAd(){   if(adNum_elady1<e_tp.length-1)adNum_elady1++ ;
                     else adNum_elady1=0;
                        elady1_set();
                           document.images.e_tprotator.src=e_tp[adNum_elady1];
                              elady1_playCo();
                                 theTimer=setTimeout("elady1_nextAd()", 8000);}
                                 function elady1_linkurl(){   jumpUrl=e_tplink[adNum_elady1];
                                    jumpTarget='_blank';
                                       if (jumpUrl != ''){      if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
                                             else location.href=jumpUrl;
                                                }}
function elady1_listMsg() 
{   status=e_tplink[adNum_elady1];
document.returnValue = true;}
document.write("<div id='elady1_divimg' style='position:relative'>");
document.write('<a onMouseOver="elady1_listMsg();return document.returnValue" href="javascript:elady1_linkurl()" target="_self">');
document.write('<img style="FILTER: revealTrans(duration=2,transition=20)" src="javascript:elady1_nextAd()" border=0 width=411 height=142 name=e_tprotator onMouseover="elady_stop_sh=1" onMouseout="elady_stop_sh=0" ></a>');
document.write("</div>");
</SCRIPT>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</BODY>
</HTML>
