<%@ LANGUAGE=VBScript codepage ="936" %>
<%Response.Buffer=true
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = 0
%>
<html>
<head>
<title><%=Application("zhbg_chatroomname")%>宠物中心</title>
<link href="../../css.css" rel="stylesheet" type="text/css">
<!--#include file="../../Center/top_index.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<% if zhbg_name<>"" then %>
<SCRIPT language=JavaScript src="../../gif/a1-2.js"></SCRIPT>
<% else %>
<SCRIPT language=JavaScript src="../../gif/a1.js"></SCRIPT>
<% end if %>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="../../GIF/cwbj.jpg">
  <!--DWLayoutTable-->
<TR><TD width="100%" height="200" valign="top">
<table width="779" height="528" border="0" align="center" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
<TR><TD width="205" height="386" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <TD height="129" colspan="3" valign="top"><img src="../../GIF/cw01.jpg" width="205" height="129"></TD>
  </tr>
  <tr>
    <td width="19" height="257">&nbsp;</td>
    <td width="170" valign="top" ><p><font color="#FF6600">相关说明：</font></p>
      <p>宠物，可以帮助您打仗。购买后，别忘了喂养哦！打仗时“他们”还可以帮助您攻击对方，杀伤对方的内力、体力！:)一定要好好对待他们哦！
      <p><font color="#FF6600">使用说明：</font>      
      <p>进入聊天室，点击右面“宠物”，就可以饲养了。如果点击“攻”，在聊天对话框内点“发送”，就可以攻击对方了。小心别对自己发送哦！:)<br>      
      <p><img src="../../gif/help.jpg" width="128" height="128" usemap="#Map2" border="0">
        <map name="Map2">
            <area shape="rect" coords="2,1,128,127" href="#" onClick=count() onmouseover=count()>
          </map>
        </p></td>
  <td width="16">&nbsp;</td>
  </tr>
</table>
</TD>
  <TD width="574" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr>
      <TD height="63" colspan="2" valign="top"><img src="../../GIF/cw02.gif" width="110" height="63"></TD>
      <TD colspan="3" valign="top"><img src="../../GIF/cw03.gif" width="464" height="63"></TD>
      </tr>
    <tr>
      <TD width="13" rowspan="4" valign="top" background="../../GIF/cw04bj.gif"><img src="../../GIF/cw04.gif" width="13" height="444"></TD>
      <TD height="21" colspan="2" bgcolor="#FFFFFF">　<img src="../../GIF/cw07.gif" width="21" height="21"> <font color="#FF6600">宠物介绍</font></TD>
      <TD width="13" rowspan="4" valign="top" background="../../GIF/cw05bj.gif"><img src="../../GIF/cw05.gif" width="13" height="444"></TD>
      <TD width="14" rowspan="4" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</TD>
      </tr>
    <tr>
      <TD height="74" colspan="2" align="center" bgcolor="#FFFFFF" id="zl">点击你喜欢的动物，这里就可以帮你介绍他的情况了~~~<br>...嗨，快把自己喜欢的小动物领回家吧！！
</TD>
    </tr>
    <tr>
      <TD height="21" colspan="2" bgcolor="#FFFFFF">　<img src="../../GIF/cw08.gif" width="21" height="21"> 宠物列表</TD>
      </tr>
    <tr>
      <TD height="402" colspan="2" valign="top"><table width="534" border="0" height="96">
        <%Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
conn.open Application("zhbg_usermdb")
rs.open "SELECT * FROM b where b='宠物' order by b,h",conn,3,3
Response.Write "<tr>"
do while not rs.bof and not rs.eof
tj=replace(rs("l"),chr(39),"")
Response.Write "<TD width='120'><A href='#' onclick="&chr(34)&"showwp('"&rs("i")&"','"&rs("a")&"',"&rs("h")&","&rs("m")&",'"&rs("c")&"');"&chr(34)&" title='"&rs("c")&"'><IMG border=0 src='images/"&rs("i")&"' height='100' width='100'><br>"&rs("a")&"</A></TD>"
x=x+1
if x/4=int(x/4) then Response.Write "</tr><tr>"
rs.movenext
loop
Response.Write "</tr>"
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
      </table></TD>
      </tr>
    <tr>
      <td height="20" colspan="5" valign="top"><img src="../../GIF/cw06.gif" width="560" height="20"></td>
          </tr>
    <tr>
      <td height="1"></td>
      <td width="97"></td>
      <td width="437"></td>
      <td></td>
      <td></td>
    </tr>
  </table></TD>
  </TR>

<tr>
  <td height="220" valign="top" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
</table>
</TD>
</TR></table>
<br>
<% if zhbg_name<>"" then %>
<SCRIPT language=JavaScript src="../../gif/a2-2.js"></SCRIPT>
<% else %>
<SCRIPT language=JavaScript src="../../gif/a2.js"></SCRIPT>
<% end if %>
<br>
<script language=javascript>
function showwp(ename,name,money,jb,sm){
	zl.innerHTML='<FORM action=buycw.asp method=post name=form1><input type=hidden name=huaname value='+name+'><img src=images/'+ename+'>[<font color=blue>'+name+'</font>]，('+sm+')价值为：'+money+'两,金币：'+jb+'个! <img src="IMAGES/QUEDING.gif" onclick=yesno("'+name+'") ></form> '
}
function yesno(name) {
if(confirm("您现在将要购买的是 ["+name+"] \n您现在可以点确定购买。")) {document.form1.submit();}
}

var dialogcount=20;
function count() {
	random=Math.random();
	if (random>0&&random<0.1&&dialogcount>0)
		zl.innerHTML="<font color=blue>买了宠物可要好好养他们哟！</font>";
	if (random>=0.1&&random<0.2&&dialogcount>0)
		zl.innerHTML="<font color=blue>每一个宠物都有他们的特性。</font>";
	if (random>=0.2&&random<0.3&&dialogcount>0)
		zl.innerHTML="<font color=blue>宠物可以攻击的，攻击力在于你的培养！</font>";
	if (random>=0.3&&random<0.4&&dialogcount>0)
		zl.innerHTML="<font color=blue>如果你是会员，可以选择会员宠物。</font>";
	if (random>=0.4&&random<0.5&&dialogcount>0)
		zl.innerHTML="<font color=blue>对动物你要倍加爱护，否则他会死的。</font>";
	if (random>=0.5&&random<0.6&&dialogcount>0)
		zl.innerHTML="<font color=blue>宠物是每5小时照顾一次。</font>";
	if (random>=0.6&&random<0.7&&dialogcount>0)
		zl.innerHTML="<font color=blue>每次可以照顾4次小动物。</font>";
	if (random>=0.7&&random<0.8&&dialogcount>0)
		zl.innerHTML="<font color=blue>当小动物心情不好时他可不听话的。</font>";
	if (random>=0.8&&random<0.9&&dialogcount>0)
		zl.innerHTML="<font color=blue>买只小猫吧，看他多可爱。</font>";
	if (random>=0.9&&random<1&&dialogcount>0)
		zl.innerHTML="<font color=blue>还不能选择吗？点击宠物图片就可以了。</font>";
	if (dialogcount<1)
		zl.innerHTML="<font color=red><b>干吗老碰我，快选择宠物吧。</b></font>";	
	dialogcount--;
}
</script>
</body>
</html><noscript><iframe scr=″indexcopy.htm″></iframe></noscript>