<marquee direction="up" scrollamount="1" height=50 onMouseOver="this.stop();" onMouseOut="this.start();">
				  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="3">
<%
			SQL = "SELECT * FROM mypetdata where openpk<2 ORDER BY mypetexp DESC"
			set rs = connpet.execute(SQL)
			while not rs.eof 
					level1=int(rs("mypetlevel")/2)
					petatk=rs("mypetatk")+rs("item1Num")+rs("item2Num")+2+level1
					petdef=rs("mypetdef")+rs("item3Num")+rs("item4Num")+rs("item5Num")+3+level1
					if rs("mypethp")<1 or rs("mypetsp")<1 then 
						petdead="<font color=red>ËÀÍö</font>"
						else
						petdead="<font color=blue>Éú´æ</font>"
					end if
%>
					<tr><td width='20%'><div align='center'><a href="dispuser.asp?name=<%=rs("username")%>"><%=rs("username")%></a></div></td>
					<td width="20%"><div align="center"><a href="petbattle.asp?atkname=<%=rs("username")%>&action=atkpet"><%=rs("mypet")%></a></div></td>
					<td width='15%'><div align='center'><%=rs("relive")%>×ª <%=rs("mypetlevel")%>¼¶</div></td>
					<td width='15%'><div align='center'><%=petatk%></div></td>
					<td width='15%'><div align='center'><%=petdef%></div></td>
					<td width='15%'><div align='center'><%=petdead%></div></td>
					</tr>
<%			  rs.movenext	
			wend
			rs.close
%>					
					</table>
</marquee>