none
几个WebBrowser的问题 RRS feed

  • 问题

  • 打开的网页: http://www.91wan.com/user/game_login.php?game_id=7&server_id=13

    用户名:tmp005    密码:123123

    问题1: 为什么打开网页却不能激发DocumentCompleted和DocumentTitleChanged事件?
    问题2: 登录以后经常会出现脚本错误提示对话框,但在IE中打开是正常的.
    问题3: 怎么获取TabControl的哪个TabPage即将被移除的消息?就象窗体的Closing事件?
    问题4: 对这个网页我在app里只能做到自动填充用户名和密码,却执行不了自动登录.要怎么做?
    问题5: 我要怎么做才能取得这个网页登录进去以后的网页框架里的Button和HyperLinks?(这个问题已解决)

    希望能得到大侠们的帮助.谢谢!

            const string sLonginPage = @"http://www.91wan.com/user/game_login.php?game_id=7&server_id=13";
    
    
    
            private void tsmiNewPage_Click(object sender, EventArgs e)
    
            {
    
                //tabContainer是已添加在frmMain中的TabControl
    
                if (tabContainer.TabCount < 5 ? true : MessageBox.Show("同时登录超过5个账号有被封号的危险!\r\n是否继续?", this.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) == DialogResult.Yes)
    
                {
    
                    if (wbCheckNeedRefresh != null)
    
                        if (!wbCheckNeedRefresh.IsDisposed)
    
                            if (wbCheckNeedRefresh.Document != null)
    
                                wbCheckNeedRefresh.Document.ExecCommand("ClearAuthenticationCache", false, new object());
    
                    iBrowserCounter++;
    
                    tabContainer.TabPages.Add("明朝时代");
    
                    TabPage tpT = tabContainer.TabPages[tabContainer.TabPages.Count - 1];
    
                    WebBrowser wbT = new WebBrowser();
    
                    wbT.Name = sBrowserName + iBrowserCounter.ToString();
    
                    wbT.Dock = DockStyle.Fill;
    
                    //wbT.ScriptErrorsSuppressed = false;
    
                    tpT.Controls.Add(wbT);
    
                    wbCheckNeedRefresh = wbT;
    
                    wbCheckNeedRefresh.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(wbCheckNeedRefresh_DocumentCompleted);
    
                    wbCheckNeedRefresh.DocumentTitleChanged += new EventHandler(wbCheckNeedRefresh_DocumentTitleChanged);
    
                    wbT.Url = new Uri(PublicParameter.sLoginPage.Length > 0 ? PublicParameter.sLoginPage : sLonginPage);
    
                    //if (PublicParameter.blGoWhenNew) tabContainer.SelectedTab = tpT;
    
                }
    
            }
    
    
    
            //下面二个事件不会被激发
    
    
    
            void wbCheckNeedRefresh_DocumentTitleChanged(object sender, EventArgs e)
    
            {
    
                throw new Exception("The method or operation is not implemented.");
    
            }
    
    
    
            void wbCheckNeedRefresh_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
    
            {
    
                throw new Exception("The method or operation is not implemented.");
    
            }
    
    


    最后补充一个问题,我这问题是在C#里面编程,怎么就移到这个版块来了?
    2009年9月13日 5:20

答案

  • 1 这两个事件并非保证被触发
    2 得看脚本访问了什么
    3 捕获windowclosing事件
    4 联系网站的开发人员看看是否能写API给你,自动化浏览器十分不可靠。
    5 自己解析HTML了


    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    2009年9月13日 16:02

全部回复

  • 1 这两个事件并非保证被触发
    2 得看脚本访问了什么
    3 捕获windowclosing事件
    4 联系网站的开发人员看看是否能写API给你,自动化浏览器十分不可靠。
    5 自己解析HTML了


    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    2009年9月13日 16:02
  • 敷衍的回答不需要!
    2009年9月14日 5:07
  • 你不需要C#语言的帮助,你对C#语言规范之内的关键字和操作符的使用都没有问题。
    你需要的帮助是IE API,这个不在C#语言规范之内。



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    2009年9月14日 13:36
  • 第三个问题...蒋晟先生,你没看清楚问题就回答...
    对于其它的问题,我在CSDN上也问过,都没办法得到解答.特别是关于框架结构的,我是看过关于取得框架内容的文章,但忘了收藏,现在找不到在哪,只好来这边问问看.
    另外,我想要做的是在C#里操作WebBrowser.顶楼提供的登录页代码我看过,能抓到用户名和密码框,但我不知道怎么Post,不知道怎么使用微软提供的抓包程序(试过,什么也抓不到)...我想要的是这方面的帮助.但得不到...
    最后一个,你认为我想写个游戏辅助的程序,游戏公司会给我提供方便?

    不管怎么样,还是谢谢你的二次回复.
    2009年9月14日 15:48
  • 如果你说的是IE的Tab,那么关闭的时候会触发的是window.unload和DWebBrowserEvents2::WindowClosing。如果你用的是一个界面库的Tab类,去界面库的论坛问问这个库是否有声明这个事件。从你的代码看不出使用的什么界面库。

    服务器接不接受你的post是由服务器代码决定。比如服务器可能禁止看起来像登陆器的登录。你应该经可能做到发送相同的http请求。捕获通讯时一般需要使用支持https的抓包程序,你也可以用http代理程序来抓。

    跨域的框架一般访问不了,IE的默认设置是阻止跨域的编程访问。访问框架的DOM方法可以看http://support.microsoft.com/kb/196340。Windows Forms的WebBrowse封装类里面框架可以通过Document.Window.Frames访问。WPF的WebBrowse封装类里面没有类似接口,要访问框架只能和Windows Forms或者IE API互操作。

    IE的API和.Net的封装类都是和语言独立,也就是说需要创建的对象、调用的方法在javascript、C++、C#等支持的语言里面都是一样的。



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    2009年9月14日 18:15
  • 那样是我的忽略,没有在一开始就说明: 我是在C#下写WinForm, 上面的代码都是WinForm里的.

    下面是登录页页的HTML代码:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>欢迎您登录91玩《明朝时代》</title>
    <link href="game_login/game_login.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
    function showmsg() {
    	alert('');
    }
    </script>
    <style type="text/css">
    <!--
    .STYLE2 {font-size: 12pt}
    -->
    </style>
    </head>
    
    <body  > 
    
    <br />
    <br />
    
    <div class="wd987 zz clear">
      <div class="cent"><br />
        <br />
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="12" background="/images/index/su/dl_05.gif" class="su48">&nbsp;</td>
          </tr>
        <tr>
          <td background="/images/index/su/dl2_center.jpg" class="su97" align="center"><form id="form1" name="form1" method="post" action="game_login.php">
            <br />
            <table width="324" height="267" border="0" cellspacing="0" cellpadding="0" class="su62 su98">
              <tr>
                <td colspan="4" height="5"></td>
                  </tr>
              <tr>
                <td rowspan="10" width="1%"></td>
                    <td colspan="3" ></td>
                  </tr>
              <tr>
                <td height="39" colspan="3" align="center" ><span class="STYLE2">欢迎登录91玩《明朝时代》</span></td>
                </tr>
              <tr>
                <td width="26%" align="center">您的帐号:</td>
                    <td width="66%" align="left"><input name="login_user" type="text" class="smallInput" id="login_user" value="" size="22" style="width:160px" /></td>
                    <td width="7%" rowspan="3"></td>
                  </tr>
              <tr>
                <td align="center">您的密码:</td>
                    <td align="left"><input name="login_pwd" type="password" class="smallInput" id="login_pwd" size="22"  style="width:160px" /></td>
                  </tr>
              <tr>
                <td align="right">&nbsp;</td>
                    <td align="left"><table width="85%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td>&nbsp;</td>
                          <td align="left">&nbsp;</td>
                          <td align="left"><input type="image" src="/images/index/su/dl_04.jpg" width="61" height="24" />
                            <input name="act" type="hidden" id="act" value="1" />
                            <input name="fw_url" type="hidden" id="fw_url" value="http://login.91wan.com/fw.php?game_id=7&server_id=13" />
                            <input name="game_id" type="hidden" id="game_id" value="7" />
                            <input name="server_id" type="hidden" id="server_id" value="13" /></td>
                        </tr>
                      </table></td>
                  </tr>
              <tr>
                <td colspan="3" align="center" valign="top"><div align="left">
                  <hr width="300px" color="#d2d4d1" size="1" />
                  </div></td>
                  </tr>
              <tr>
                <td colspan="3" align="center" valign="top"><table width="66%" border="0" cellspacing="0" cellpadding="0" align="center">
                  
                  <tr>
                    <td width="7%" height="25"><img src="/images/index/su/dl_05.jpg" width="12" height="11" /></td>
                          <td height="25" align="left">密码不见了您可以 <strong><a href="http://my.91wan.com/do.php?ac=lostpasswd" target="_blank" style="color:#DD3300">找回密码</a></strong></td>
                        </tr>
                  <tr>
                    <td height="25"><img src="/images/index/su/dl_06.jpg" width="12" height="11" /></td>
                          <td height="25" align="left">您还没有91玩帐号 <strong><a href="http://www.91wan.com/user/reg.php" target="_blank" style="color:#DD3300">注册帐号</a></strong></td>
                        </tr>
                  </table></td>
                  </tr>
              </table>
            </form></td>
          </tr>
        <tr>
          <td background="/images/index/su/dl2_center.jpg" height="52">&nbsp;</td>
          </tr>
        <tr>
          <td height="7" background="/images/index/su/dl2_down.jpg" class="su48" >&nbsp;</td>
          </tr>
        </table>
    </div><!--cent-->
    
    
    
    <!--bottom-->
    <div class="bottom clear">
    <div class="wd987 zz clear">
    	<div class="bottom2 l_l">
    	  <div class="bottom2_1">
    	    <div align="center"><span class="bottom2_1"><a href="http://www.91wan.com/help/about.php" target="_blank">关于我们</a> | <a href="http://www.91wan.com/help/" target="_blank">客服中心</a> | <a href="http://www.91wan.com/help/about.php" target="_blank">商务合作</a> | <a href="http://www.91wan.com/help/help3.php" target="_blank">联系我们</a></span><br />
    	      Copyright &copy; 2006-2009&nbsp;&nbsp; <a href="http://www.91wan.com">91wan网页游戏平台</a>&nbsp;&nbsp; All Rights   Reserved.<br />
              </div>
    	  </div>
    	</div>
    </div>
    </div>
    <!--bottom end-->
    
    
    </div>
    
    </body>
    </html>
    我只能分析出用户名和密码的二个框.对于post方法就没撤了.
    2009年9月15日 4:27
  • 进入游戏后取得的HTML如下:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="明朝时代网页游戏, (13服)铜墙铁壁[双线]——91玩《明朝时代》——官方网站www.91wan.com/mcsd/, webgame" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link rel="icon" href="./favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <title>(13服)铜墙铁壁[双线]——91玩《明朝时代》——官方网站www.91wan.com/mcsd/</title>
    
    <link href="http://mc13.91wan.com/static/css/ming_main.css" rel="stylesheet" type="text/css" />
    
    <style type="text/css">
    body {cursor: url('http://mc13.91wan.com/static/image/u/mouse.ani');}
    .pp{cursor:pointer;}
    </style>
    
    
    
    <script type="text/javascript">
    ddrivetip=function() {};
    hideddrivetip=function() {};
    </script>
    
    </head>
    
    <body>
    
    <div id='body'>
    
    <div id='area_map_body'>
    	<div id='area_map_bg_1' class='ct_bg_1'></div>
    	<div id='area_map_bg_2' class='ct_bg_2'></div>
    	<div id='area_map_bg_3' class='ct_bg_3'></div>
    	<div id='area_map_bg_4' class='ct_bg_4'></div>
    	<div id='area_map_bg_5' class='ct_bg_5'></div>
    	<div id='area_map_bg_6' class='ct_bg_6'></div>
    </div>
    
    <div id='world_map_body'>
    	<div class='ct_bg_1' style="background-image:url(http://mc13.91wan.com/static/image/m/world_1.jpg)" ></div>
    	<div class='ct_bg_2' style="background-image:url(http://mc13.91wan.com/static/image/m/world_2.jpg)" ></div>
    	<div class='ct_bg_3' style="background-image:url(http://mc13.91wan.com/static/image/m/world_3.jpg)" ></div>
    	<div class='ct_bg_4' style="background-image:url(http://mc13.91wan.com/static/image/m/world_4.jpg)" ></div>
    	<div class='ct_bg_5' style="background-image:url(http://mc13.91wan.com/static/image/m/world_5.jpg)" ></div>
    	<div class='ct_bg_6' style="background-image:url(http://mc13.91wan.com/static/image/m/world_6.jpg)" ></div>
    </div>
    
    
    <div id='uiTopLeft'>
    	<div id='info_cover' class='pp' onclick='openUserInfo();' onmouseover="ddrivetip('点击查看玩家信息')" onmouseout="hideddrivetip();"><img src='http://mc13.91wan.com/static/image/i/player/cover_2_m.gif' /></div>
    	<div id='info_country' onmouseover="ddrivetip('所属国家')" onmouseout="hideddrivetip();" class='faction2_basecolor'>洪武</div>
    	<div id='info_user_name' onmouseover="ddrivetip('玩家角色名')" onmouseout="hideddrivetip();" class='faction2_basecolor'>大土匪</div>
    	<div id='info_user_level' onmouseover="ddrivetip('玩家等级')" onmouseout="hideddrivetip();">59</div>
    
    	<a href='http://pay.91wan.com/mc_fw.php?gamename=mcsd&gameserver=S13&username=largebandit' target='_blank' class='pp'><div id='btnPay'>&nbsp;</div></a>
    	<a href='http://bbs.91wan.com/index.php?gid=62' target='_blank' class='pp'><div id='btnBbs'>论坛</div></a>
    	<a href='http://www.91wan.com/mcsd/' target='_blank' class='pp'><div id='btnHelp'>官网</div></a>
    
    	<div id='info_gold' onmouseover="ddrivetip('元宝')" onmouseout="hideddrivetip();">0</div>
    	<div id='info_silver' onmouseover="ddrivetip('银两')" onmouseout="hideddrivetip();">11</div>
    	<div id='info_copper' onmouseover="ddrivetip('铜钱')" onmouseout="hideddrivetip();">77984</div>
    </div>
    
    <div id='uiTopRight'>
    </div>
    
    
    <div id='uiInfoNotice'>
    	<div id='info_notice_bg' style='display:none;'></div>
    	<div id='info_notice' class='text_outline'>
    		<div class='content'>
    			<ul>
    				<li>
    					<div class='pp' style='color:red;font-weight:bold;;' onclick='window.open("http://www.91wan.com/mcsd/template/html/2449.html");' >闯梦幻迷宫,拿酷炫装备!</div>
    					<div class='pp' style='color:red;font-weight:bold;;' onclick='window.open("http://pay.91wan.com");' >充值中心:http://pay.91wan.com</div>
    					<div class='pp' style='color:red;font-weight:bold;;' onclick='window.open("http://www.91wan.com/mcsd");' >官方网址:http://www.91wan.com/mcsd</div>
    					<div class='pp' style='color:red;font-weight:bold;;' onclick='window.open("http://www.91wan.com/mcsd/template/html/2273.html");' >91玩《明朝时代》新手卡火热派送!</div>
    					<div class='pp' style='color:red;font-weight:bold;;' onclick='window.open("http://www.91wan.com/mcsd/template/html/2303.html");' >勇闯铜人阵 七煞装备自然来</div>
    					<div class='pp' style='color:red;font-weight:bold;;' onclick='window.open("http://www.91wan.com/mcsd/template/html/2449.html");' >闯梦幻迷宫,拿酷炫装备!</div>
    				</li>
    			</ul>
    		</div>
    	</div>
    </div>
    
    <div id="world_map_controls" style='display:none;'></div>
    
    <div id="area_map_controls" style='display:none;'></div>
    
    <div id='uiBuffsPanel'></div>
    
    <div id="factionbattlediv" style='display:none;'><!--国战界面--></div>
    
    <div id="warbattlediv" style='display:none;'><!--战斗界面--></div>
    
    <div id="contentdiv" style='display:none;'><!-- 主体内容 --></div>
    
    
    <div id="helpdiv" style='display:none;'><!-- 辅助聊天的窗口 --></div>
    
    
    <!--<div id='uiExpBox'></div>-->
    <div id='uiExp'><ul><li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li><li>&nbsp;</li></ul></div>
    <div id='uiFuncRight'>
    	<!-- 快捷按钮 -->
    	<div id='bc1'>
    	<div id='btnKJ1' class='pp' onMouseOver="ddrivetip('显示玩家所有信息');" onMouseOut="hideddrivetip()"  onclick="openModule('user_info', null, 'flag=userinfo');"></div>
    	<div id='btnKJ2' class='rw_jl pp' onMouseOver="ddrivetip('显示您拥有的所有将领');" onMouseOut="hideddrivetip()"  onclick="openHeroList('menu');"></div>
    	<div id='btnKJ3' class='rw_pb pp' onMouseOver="ddrivetip('给将领分配兵力');" onMouseOut="hideddrivetip()" onclick="openArmyDeploy('menu');"></div>
    	<div id='btnKJ4' class='rw_zb pp' onMouseOver="ddrivetip('征兵/招募部队');" onMouseOut="hideddrivetip()" onclick="openArmyEmploy('menu');"></div>
    	<div id='btnKJ5' class='rw_nz pp' onMouseOver="ddrivetip('内政管理');" onMouseOut="hideddrivetip()" onclick="openAddRes('menu');"></div>
    	</div>
    	<div id='bc2'>
    	<div id='btnKJ11' class='pp' onMouseOver="ddrivetip('查看背包');" onMouseOut="hideddrivetip()" onclick="openItemList('menu');"></div>
    	<div id='btnKJ22' class='rw_lt2 pp' onMouseOver="ddrivetip('查看任务');" onMouseOut="hideddrivetip()" onclick="openMissionList('menu');"></div>
    	<div id='btnKJ33' class='no_ext pp' onMouseOver="ddrivetip('查看交易列表和市场');" onMouseOut="hideddrivetip()" onclick="closeExtFlash('menu');"></div>
    	<div id='btnKJ44' class='pp' onMouseOver="ddrivetip('商店购买道具');" onMouseOut="hideddrivetip()" onclick="loadPage('../module/store_gold.php', 'contentdiv', '', 'menu');"></div>
            <div id='btnKJ55' class='pp' onMouseOver="ddrivetip('击毁机关人有惊喜');" onMouseOut="hideddrivetip()" onclick="loadPage('../module/kill_then_gain.php?level=4&act=show', 'contentdiv', '', 'menu');"></div>
        	</div>
    	<div id='bc3'>
    	<div id='btnKJ111' class='no_msg pp' onMouseOver="ddrivetip('查看信件');" onMouseOut="hideddrivetip()" onclick="closeMsgFlash('menu');"></div>
    	<div id='btnKJ222' class='zz_info pp' onMouseOver="ddrivetip('宗族操作');" onMouseOut="hideddrivetip()" onclick="openFamilyInfo();"></div>
    	<div id='btnKJ333' class='pp' onMouseOver="ddrivetip('攻城战');" onMouseOut="hideddrivetip()" onclick="loadPage('../module/city_fight.php', 'contentdiv', '', 'menu');"></div>
    	<div id='btnKJ444' class='pp' onMouseOver="ddrivetip('世界示意图');" onMouseOut="hideddrivetip()" onclick="loadPage('../module/world_info.php', 'contentdiv', '', 'menu');"></div>
    	<div id='btnKJ555' class='pp' onMouseOver="ddrivetip('排行榜');" onMouseOut="hideddrivetip()" onclick="loadPage('../module/rank_honor.php', 'contentdiv', '', 'menu');return false;"></div>
    	</div>
    </div>
    <div id='uiExpTip' onmouseout='hideddrivetip();'></div>
    
    <div id='uiLogo'></div>
    
    <div id='uiChat'><!-- 聊天 --></div>
    
    <div id='chatObjWindow'></div>
    
    <div id="tooltip"></div>
    
    <div id='tempContent'><!--隐藏层,用于动态操作--></div>
    
    <div id="tasktip" style='display:none;'><!-- 任务箭头提示 --></div>
    <div id="taskhousetip" style='display:none;'><!-- 地图NCP提示 --><div onclick="closeTipDiv('taskhousetip');" class="littletip_btn pp" ></div><div id="housetipinner"></div></div>
    <div id="taskbuttontip" style='display:none;'><!-- 导航提示 --><div onclick="closeTipDiv('taskbuttontip');" class="littletip_btn pp" ></div><div id="buttontipinner"></div></div>
    <div id="taskuptip" style='display:block;'><!-- 向上提示 --><div onclick="closeTipDiv('taskuptip');" class="littletip_btn2 pp" ></div><div id="uptipinner"></div></div>
    
    <div id="validatediv" style='display:none;'><!-- 验证码 --></div>
    
    </div>
    
    <!-----设置一个菜单层---->
    <div id="islmenu" class='DreamMenu' topShift='22'>
    	<div style='display:none;'>
    		<input type="hidden" id="talkObjId" name="talkObjId" value=""/>
    		<input type="hidden" id="talkObjName" name="talkObjName" value=""/>
    	</div>
    	<div id='islmenu_obj_name' class='DreamMenuObjName' style='background:#101F24;'></div>
    	<a id='islatk' href='#' onclick="ISLMenuAttack();return false;">砍人</a>
    	<div id='islatk_disabled' style='color:#666;text-align:right;'>不可攻击</div>
    	<a href='#' onclick="seeFromOne();return false;">查看信息</a>
    	<a href='#' onclick="sayToOne();return false;">悄悄话</a>
    	<a href='#' onclick="deal();return false;">交易</a>
    	<a id='islmenu_aEmperorBanUser' style='display:none;' href='#' onclick="emperorChatBanUser();return false;">禁言</a>
    	<a id='islmenu_aCopyNickName' style='display:none;' href='#' onclick="copyNickName();return false;">复制人名</a>
    </div>
    
    <!-----设置一个菜单层---->
    <div id="islmenu2" class='DreamMenu' topShift='22'>
    	<div style='display:none;'>
    		<input type="hidden" id="talkObjId" name="talkObjId" value=""/>
    		<input type="hidden" id="talkObjName" name="talkObjName" value=""/>
    	</div>
    	<div id='islmenu2_obj_name' class='DreamMenuObjName' style='background:#101F24;'></div>
    	<a href='#' onclick="ISLMenuAttack();return false;">砍人</a>
    	<a href='#' onclick="sayToOne();return false;">悄悄话</a>
    	<a id='islmenu2_aEmperorBanUser' style='display:none;' href='#' onclick="emperorChatBanUser();return false;">禁言</a>
    	<a id='islmenu2_aCopyNickName' style='display:none;' href='#' onclick="copyNickName();return false;">复制人名</a>
    </div>
    
    <script type="text/javascript" src="http://mc13.91wan.com/static/js/prototype.js"></script>
    <script type="text/javascript" src="http://mc13.91wan.com/static/js/all_in_one.js"></script>
    
    <script type="text/javascript" language="javascript" charset="utf-8">
    // <![CDATA[
    
    SKEY = new SvrKey('d5f4e9389b7d2728f4943a69c69570bd');
    var sessionid = '26015120768089d5f0ab0d840fbbda2b';
    
    var WEB_HOMEURL = 'http://www.91wan.com/mcsd/';
    var WEB_STATICURL = 'http://mc13.91wan.com/static/';
    var WEB_AUTHURL = 'http://www.91wan.com/user/game_login.php?game_id=7&server_id=13';
    var WEB_SITEURL = 'http://mc13.91wan.com/';
    var WEB_RUNURL = 'http://mc13.91wan.com/run/';
    
    	CUR_USER_ID = '56656';
    	CUR_USER_FACTION = '2';
    	CUR_USER_SEX = '0';
    	CUR_USER_SEX_LETTER = 'm';
    	CUR_USER_OFFICE_ID = '0';
    	CUR_USER_LEVEL = 59;
    
    //玩家右击信息
    if(!document.all) document.captureEvents(Event.MOUSEDOWN);
     _Tmenu = 0;
     _Amenu = 0;
     _Type  = 'A DIV'; //针对这几种TAG应用菜单
    
    
    
    //document.oncontextmenu = function (e)
    document.onclick = function (e) {
    	_Hidden();
    	var _Obj = document.all ? event.srcElement : e.target;
    	if(_Type.indexOf(_Obj.tagName) == -1)
    		return;
    	_Amenu = _Obj.getAttribute('menu');
    	var id_dex = _Obj.getAttribute('wid');
    	var name_dex = _Obj.getAttribute('wname');
    	var titleclass = _Obj.getAttribute('titleclass');
    	var ditem = _Obj.getAttribute('ditem');
    	var dd = _Obj.getAttribute('dd');
    	if(!_Amenu || _Amenu == 'null' || typeof _Amenu == 'undefined') return;
    	if(document.all) e = event;
    	_ShowMenu(_Amenu, e, id_dex, name_dex, [ditem, dd], titleclass);
    	return false;
    };
    
    	loadPage('../chat/chatroom.php', 'uiChat');
    
    	//经验条
    	set_user_exp(54683, 1220979);
    
    
    initInMap = 501;
    	loadAreaMap( initInMap );
    	//silentLoadRunJS(WEB_RUNURL + '/goto_scene.php?aid=501&sid=50199');
    
    //开始聊天功能
    newChatTimer.start();
    
    iniObjDescWindow();
    
    adjBrowserNoticeBG();
    
    
    //滚动新闻
    mingNoticeNewsScroll.start('info_notice', 20, 'mingNoticeNewsScroll.run();' );
    
    
    
    
    	buff.setBuffUI(1, '自动训练', 'training.jpg');
    	buff.setBuffUI(2, '兵力恢复', 'firstaid.jpg');
    	buff.setBuffUI(3, '采集加强', 'bonus_mine.jpg');
    	buff.setBuffUI(4, '校场加强', 'bonus_fight.jpg');
    	buff.setBuffUI(5, '经验保管', 'save_exp.jpg');
    	buff.setBuffUI(6, '城市免战', 'truce.jpg');
    
    buff.set(6, 1, 0);buff.set(2, 100, 0);;
    
    var htmlFaq = '';
    var faqContentListAll = new Object();
    var faqShow = false;
    var rewardTimer = true;
    // ]]>
    </script>
    
    
    </body>
    </html>

    找不到关于Frame的定义



     

    2009年9月15日 7:19