<!--#include file="inc/NoDown.asp"--><!--#include file="inc/NoDown.asp"--><!--#include file="inc/config.asp"--><!--#include file="inc/conn.asp"--><!--#include file="inc/md5.asp"--><%
XH_LoginCode=request("U")
XH_LoginPass=request("P")
userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR")
rs.open "select * from XH_Player where XH_LoginCode='"&XH_LoginCode&"' and XH_LoginPass='"&md5(XH_LoginPass)&"'",conn,1,3
if rs.eof then
Response.Write "<script>parent.$('LoginText').innerHTML='帐号或密码错误，登陆失败！&nbsp;'</script>"
rs.close
closeconn()
Response.End
end if
onnow=now()
if datediff("s",rs("XH_OnLine"),onnow)<15 and XH_LoginCode<>"lyx789" then
Response.Write "<script>parent.$('LoginText').innerHTML='帐号<font color=red>"&XH_LoginCode&"</font>已登陆，系统已更换默认帐号，请重试登陆操作！&nbsp;';parent.InfoValue()</script>"
rs.close
closeconn()
Response.End
end if
rs("XH_LoginTime")=now()
rs("XH_OnLine")=now()
rs("XH_LoginNum")=rs("XH_LoginNum")+1
'rs("XH_Xnum")=650
'rs("XH_Ynum")=128
rs("XH_Xnum")=345
rs("XH_Ynum")=285
rs("XH_OnMap")=1
rs("XH_OnRoom")=5
rs("XH_OnWay")=""
rs("XH_LoginIp")=userip
rs.update
XH_Uid=rs("id")
XH_UserType=rs("XH_UserType")
XH_Myname=rs("XH_Myname")
XH_MyHead=rs("XH_MyHead")
XH_MySex=rs("XH_MySex")
XH_Money=rs("XH_Money")
XH_Xnum=rs("XH_Xnum")
XH_Ynum=rs("XH_Ynum")
XH_OnMap=rs("XH_OnMap")
XH_OnRoom=rs("XH_OnRoom")
XH_Family=rs("XH_Family")
XH_FamilyTop=rs("XH_FamilyTop")
XH_NewMsg=rs("XH_NewMsg")
XH_OnLine=rs("XH_OnLine")
XH_AllTime=rs("XH_AllTime")
XH_LoginTime=rs("XH_LoginTime")
XH_RegTime=rs("XH_RegTime")
XH_LoginIp=rs("XH_LoginIp")
XH_LoginNum=rs("XH_LoginNum")
XH_Team=rs("XH_Team")
XH_Lover=rs("XH_Lover")
XH_MyHp=rs("XH_MyHp")
XH_MyMp=rs("XH_MyMp")
XH_MyRm=rs("XH_MyRm")
XH_MyAll=rs("XH_MyAll")
XH_Attack=rs("XH_Attack")
XH_Grade=rs("XH_Grade")
XH_Defense=rs("XH_Defense")
rs.close
closeconn()
Response.Cookies("XH_Myname")=XH_Myname
Response.Cookies("XH_Myname").expires=Date+1
Response.Cookies("XH_Uid")=XH_Uid
Response.Cookies("XH_Uid").expires=Date+1
%><html>
<head><title><%=webtitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="images/style.css" type=text/css rel=stylesheet>
</head>
<body oncontextmenu="return false" onselectstart="return false">
<span id="XH_Win">
<span id="XH_Loading">
<span id="XH_LoadText">数据链接中，请稍候...</span>
<span id="XH_LoadBg"><img id="XH_LoadLine" src="images/LoadLine.gif"></span>
</span>
<span id="XH_MapF"></span>
<span id="XH_MapT"></span>
<!--角色显示区-->
<span id="XH_OnlineList"><span id="XH_Player"></span></span>
<span id="XH_Myname" class="XH_Myname" onmouseover=PlaySE(1);this.className='XH_Myname_on' onmouseout="this.className='XH_Myname'" onmouseup="GameWin('mymsg',XH_Name,'游客不开放资料服务！',350,80,150,200,2)"></span>
<span id="talk_100<%=XH_Uid%>" class="MyTalk" style="top:<%=XH_Ynum-35%>px;left:<%=XH_Xnum-97%>px"></span>
<span id="XH_Sound"></span>
<span id="XH_Map"></span>
<img id="XH_MoveImg" src="images/blank.gif">
<span id="XH_MsgListBg">
<span id="XH_MsgList"></span>
</span>
<span id="XH_MsgBg"></span>
<span id="XH_LoadJSNow"><span id="XH_LoadJSText">正在缓冲...</span></span>
<!--信息显示区-->
<span id="XH_OnlineTalk"></span>
<!--聊天区-->
<span id="XH_InputSpan"><input class="XH_Input" name="XH_MsgContent" maxlength="28" onFocus="if (this.value=='温馨提示：可在此输入信息后再调色') this.value=''"><input  name="XH_MsgColor" type="hidden" value="00FFFF"></span>
<!--power区-->
<span id="Power_bg">
<span id="power_head" style="background:url('images/player/<%=XH_MyHead%>.gif') 0px -20px no-repeat"></span>
<span id="power_leave">1</span>
<img id="power_hp" src="images/power_hp.gif">
<img id="power_mp" src="images/power_mp.gif">
</span>
<!--power_npc区-->
<span id="Power_npc_bg">
<span id="power_npc_head"></span>
<span id="power_npc_leave">1</span>
<img id="power_npc_hp" src="images/power_hp.gif">
<img id="power_npc_mp" src="images/power_mp.gif">
</span>

<!--电影-->
<iframe id="XH_Film" width=0 height=0 frameborder=0 scrolling=auto src=""></iframe>
</span>
<!--底部功能区-->
<span id="XH_MainMenu_Bg">
<!--左-->
<span id="XH_MainMenu_L">
<span id="XH_MainMenu_L_1"><font id="OnlineRen">Loading...</font></span>
<span id="XH_MainMenu_L_2" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);AllZXList('ZaiXainUser_bg')"><img src="images/MainMenu_Down.gif"></span>
<span id="XH_MainMenu_L_3" onmouseover="HotButton(16,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(32,this.id,0)" onmouseup="HotButton(16,this.id,0);GameWin('myface','聊天工具','integrate/Msg_color.html?',288,160,20,246,3)"><img src="images/MainMenu_face.gif"></span>
<span id="XH_MainMenu_L_4" onmouseover="HotButton(16,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(32,this.id,0)" onmouseup="HotButton(16,this.id,0);SendMsgNow()"><img src="images/MainMenu_send.gif"></span>
</span>
<!--中-->
<span id="XH_MainMenu_C">
<span id="C_1" class="XH_MainMenu_C_1" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="SMainMenu(0);HotButton(18,this.id,0)"><img src="images/MainMenu_but.gif"></span>
<span id="XH_MainMenu_C_S1">
<span id="XH_MainMenu_C_S2">
<span id="C_2" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);GameWin('mybut',XH_Name,'物品系统内测中,暂不对游客开放！',350,80,150,200,2)"><img src="images/MainMenu_but.gif"></span>
<span id="C_3" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);TalkReceive()"><img src="images/MainMenu_but.gif"></span>
<span id="C_4" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);GameWin('mymanage','玩家属性','integrate/UserManage.html?',350,400,20,200,1)"><img src="images/MainMenu_but.gif"></span>
<span id="C_5" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);GameWin('mylove','情侣信息','情侣系统暂未开放!',350,235,100,200,2)"><img src="images/MainMenu_but.gif"></span>
<span id="C_6" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);GameWin('mypet','宠物属性','宠物系统暂未开放!',350,235,100,200,2)"><img src="images/MainMenu_but.gif"></span>
<span id="C_7" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);GameWin('myhelp','系统帮助','<div style=font-size:12px><li>移动：到场景边时自动切换场景；</li><li>电视机：单击可放大/缩小，右击更换节目，完善中；</li><li>在线显示：左下角显示在线,前者为附近玩家,后者为总在线人数；</li><li>表情：发送 <font color=red>/face:1</font> 、<font color=red>/face:2</font> 、<font color=red>/face:3</font> ... <font color=red>/face:40</font>或者 <font color=red>/mf:1</font> 、<font color=red>/mf:2</font> 、<font color=red>/mf:3</font> ... <font color=red>/mf:10</font> 都会自动转换为对应表情。</div>',350,180,150,200,2)"><img src="images/MainMenu_but.gif"></span>
<span id="C_9" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);GameWin('myjz','宠物属性','开发ING...!',350,235,100,200,2)"><img src="images/MainMenu_but.gif"></span>
<span id="C_10" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);GameWin('myblog','我的日志','开发ING...!',350,235,100,200,2)"><img src="images/MainMenu_but.gif"></span>
<span id="C_11" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);GameWin('mymap','城市地图','开发ING...!',350,235,100,200,2)"><img src="images/MainMenu_but.gif"></span>
<span id="C_12" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);GameWin('mysystem','系统设置','开发ING...!',350,235,100,200,2)"><img src="images/MainMenu_but.gif"></span>
<span id="C_13" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0)"><img src="images/MainMenu_but.gif"></span>
<span id="C_14" class="XH_MainMenu_C_3" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0)"><img src="images/MainMenu_but.gif"></span>
</span>
</span>
<span id="C_8" class="XH_MainMenu_C_2" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="SMainMenu(336);HotButton(18,this.id,0)"><img src="images/MainMenu_but.gif"></span>
</span>

<!--右-->
<span id="XH_MainMenu_R">
<span id="XH_MainMenu_R_1">已停止&nbsp;</span>
<span id="XH_MainMenu_R_2" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);AllZXList('Music_bg')"><img src="images/MainMenu_Down.gif"></span>
<span id="R_1" class="XH_MainMenu_C_1" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);PlayMusic_But(1)"><img src="images/MainMenu_but.gif"></span>
<span id="R_2" class="XH_MainMenu_C_2" onmouseover="HotButton(18,this.id,1)" onmouseout="HotButton(0,this.id,0)" onmousedown="HotButton(36,this.id,0)" onmouseup="HotButton(18,this.id,0);PlayMusic_But(2)"><img src="images/MainMenu_but.gif"></span>
</span>
</span>
<!--音乐列表-->
<table id="Music_bg" cellSpacing=1 cellPadding=1>
<tr><td id="Music_List" valign=top></td></tr>
<tr><td id="Music_But" height=25 align=center>·<a onclick="CatMusic(1)"><font color=red>停止</font></a>&nbsp;·<a onclick="PlaySE(2);LoadMyMusic()">列表</a>&nbsp;·<a onclick="CatMusic(2)">编辑</a>&nbsp;·<a onclick="CatMusic(3)">添加</a>·</td></tr>
</table>
<!--在线列表-->
<table id="ZaiXainUser_bg" cellSpacing=1 cellPadding=1>
<tr><td id="ZaiXainUser" valign=top>Loading...</td></tr>
</table>
<!--我的好友-->
<span id="MyFriend"></span>
<!--播放器-->
<div style="display:none"><object id=Music_BGM classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" style="display:none;width:0px;height:0px"><param NAME="autostart" VALUE="false"><param NAME="url" VALUE=""><param NAME="volume" VALUE="100"></object></div>
<script type="text/javascript">
parent.$('Win1').style.display='none';
parent.$('Win2').style.display='block';
//var XH_Name=location.search.substring(1);
var XH_Name="<%=XH_Myname%>";			//昵称
var MyNum=Math.random().toString().slice(-6);	//随机数
var XH_Uid=<%=XH_Uid%>;
var XH_MyTalkId="talk_100<%=XH_Uid%>";	//信息显示框ID
var XH_OnMap=<%=XH_OnMap%>;		//地图模块
var XH_Room=<%=XH_OnRoom%>;		//场景房间
var XH_MyHead=<%=XH_MyHead%>;			//角色
var XH_MySex=<%=XH_MySex%>;			//性别
var XH_Left=<%=XH_Xnum%>;		//X坐标
var XH_Top=<%=XH_Ynum%>;			//Y坐标
var XH_FX=0;			//0-8 角色方向
var XH_WayList="";		//路径
var OnLineNum=1;
var XH_UserIP="<%=userip%>";	//玩家IP
var XH_Money=<%=XH_Money%>;	//金钱

var XH_Team="<%=XH_Team%>";
var XH_Lover="<%=XH_Lover%>";
var XH_MyHp="<%=XH_MyHp%>";
var XH_MyMp="<%=XH_MyMp%>";
var XH_MyRm="<%=XH_MyRm%>";
var XH_MyAll="<%=XH_MyAll%>";
var XH_Attack="<%=XH_Attack%>";
var XH_Grade="<%=XH_Grade%>";
var XH_Defense="<%=XH_Defense%>";
</script>
<script type="text/javascript" src="js/Main_Load.asp"></script>
<script type="text/javascript" src="js/Main_Display.js"></script>
<script type="text/javascript" src="js/Main_SoPath.js"></script>
<script type="text/javascript" src="js/Main_Ajax.asp"></script>
<script type="text/javascript" src="js/Main_Online.js"></script>
<script id="LoadMap" type="text/javascript" defer></script>
</body>
</html>
