<marquee direction="up" scrollamount="1" height=100 onMouseOver="this.stop();" onMouseOut="this.start();">
<table width="100%" align="center" cellpadding="3" cellspacing="3">
<%
SQL = "SELECT * FROM mypetdata where openpk<2 ORDER BY relive DESC,mypetexp DESC"
set rs = connpet.execute(SQL)
while not rs.eof 
	level1=int(rs("mypetlevel"))
	str=rs("str")
	ski=rs("ski")
	petatk=rs("mypetatk")+rs("item1Num")+rs("item2Num")+int(str/2)
	petdef=rs("mypetdef")+rs("item3Num")+rs("item4Num")+rs("item5Num")+int(ski/2)
	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%" align="center"><a href="dispuser.asp?name=<%=rs("username")%>"><%=rs("username")%></a></td>
    <td width="20%" align="center"><a href="YD_petbattle.asp?atkname=<%=rs("username")%>&action=atkpet"><%=rs("mypet")%></a></td>
    <td width="15%" align="center"><%=rs("relive")%>×ª <%=rs("mypetlevel")%>¼¶</td>
    <td width="15%" align="center"><%=petatk%></td>
    <td width="15%" align="center"><%=petdef%></td>
    <td width="15%" align="center"><%=petdead%></td>
  </tr>
<%
	rs.movenext
wend
rs.close
%>
</table>
</marquee>