玩着游戏无聊,然后开始研究里面的BUG。就是下面那个页面的
http://q1.playking.com/qgame/index.php
===========================================
用IE内核的浏览器查看其源代码得到:
===========================================
<DIV class=myframe>
<DIV class=frame_top></DIV>
<DIV class=frame_left></DIV>
<DIV class=frame_center>
<DIV class=enter>
<FORM onsubmit="return false" method=post name=userlogin action=""><SPAN id=hashcode><INPUT id=hashId value=0b5e29aa1acf8bdc5d8935d7036fa4f5 type=hidden name=hash></SPAN> 
<DIV class=enter_area><SPAN class=biaoti_type2_16_B>欢迎登入【百步飞剑】</SPAN></DIV>
<DIV class=enter_neikuang1><INPUT id=usernameId class=input_hj tabIndex=1 size=14 name=username></DIV>
<DIV class=enter_neikuang2><INPUT id=passwordId class=input_hj tabIndex=2 value="" size=14 type=password name=password></DIV>
<DIV class=enter_neikuang3><INPUT id=passId class=input_hj maxLength=5 size=12 name=pass></DIV>
<DIV class=enter_idcode><SPAN id=hashimage onclick=changehash() jQuery1283210785093="9" tOpacity="1" tooltipText="鼠标点击更换" alt><IMG border=0 alt="" align=top src="font/4.gif" width=16 height=20><IMG border=0 alt="" align=top src="font/4.gif" width=16 height=20><IMG border=0 alt="" align=top src="font/6.gif" width=16 height=20><IMG border=0 alt="" align=top src="font/2.gif" width=16 height=20></SPAN></DIV>
<DIV class=enter_starticon onclick=login()></DIV>
<DIV class=enter_zhuce><SPAN class=import_type_12><A href="http://www.playking.com/qgamew/createuser.php">免费注册</A></SPAN><SPAN class=white_tips_hui_12>|</SPAN></DIV>
<DIV class=enter_forget><SPAN class=link_type_12><U>忘记密码</U></SPAN></DIV></FORM></DIV></DIV>
<DIV class=frame_right></DIV>
<DIV class=frame_bottom></DIV></DIV><!-- begin infobox box -->
<DIV id=infoboxId class="infoDialog jqmID1" _jqm="1">
<DIV class=infodTL>
<DIV class=infodTR>
<DIV class=infodTC></DIV></DIV></DIV>
<DIV class=infodBL>
<DIV class=infodBR>
<DIV class="infodBC infodBC2">
<DIV id=infoMsgId class=infodMSG>msg </DIV></DIV></DIV></DIV></DIV><!-- end write message box -->
<DIV style="POSITION: absolute; DISPLAY: none" id=tip2 jQuery1283210785093="2">
<DIV>
<DIV id=tip2text class=title jQuery1283210785093="4"></DIV>
<DIV style="DISPLAY: none" class=body jQuery1283210785093="6"></DIV></DIV></DIV>
<DIV style="Z-INDEX: 4000; DISPLAY: none" id=tooltip jQuery1283210785093="3">
<DIV>
<DIV class=title jQuery1283210785093="5"></DIV>
<DIV class=body jQuery1283210785093="7"></DIV>
<DIV class=url jQuery1283210785093="8"></DIV></DIV></DIV>
================================
用firefox得到的源代码是
================================
<!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" />
<link href="css/jquery.tooltip.css" rel="stylesheet" type="text/css" />
<link href="css/mystyle.css" rel="stylesheet" type="text/css" />
<link href="css/enter.css" rel="stylesheet" type="text/css" />
<link href="css/npc_xiulian_gongji.css" rel="stylesheet" type="text/css" /><script type='text/javascript' src='js/jquery-1.3.2.min.js'></script>
<script type='text/javascript' src='js/jquery.countdown.js'></script>
<script type='text/javascript' src='js/jqModal.js'></script>
<script type='text/javascript' src='js/jqDnR.js'></script><script src="js/jquery.dimensions.js" type="text/javascript"></script>
<script src="js/jquery.tooltip.js" type="text/javascript"></script><script>
$(function () {
$('#infoboxId')
.jqm({
overlay: 30});

$('#hashimage').tooltip({track: false,delay: 0,showURL: false,showBody: " - ",fixPNG: true});
});

function checkInviteCode(mode){
var activecode = $("#acitvecode").val()
if(activecode.length<1){
ShowInfoBox('请输入激活码!');
}else{
$('#infoboxId').jqmHide();
}
$.post("login.php",{activecode: activecode, logmode: mode}, function(welcome) {

if(welcome!="1"&&welcome!="2")
{
changehash();
ShowInfoBox(welcome);
}else{
if(welcome =="2")
window.location='createChar.php';
else
window.location='index.php';
}
});
}

function startLogin()
{
var username = $("#usernameId").val();
var password = $("#passwordId").val();
var pass= $("#passId").val();
var hash= $("#hashId").val();
if(username.length<1)
{
// $('#infoboxId').jqmShow();
ShowInfoBox('请输入正确的用户名!');
return false;
}
if(password.length<1)
{
ShowInfoBox('请输入正确的密码!');
return false;
}
if(pass.length<1)
{
ShowInfoBox('请输入正确的验证码!');
return false;
}
$("#loading").bind("ajaxSend", function()
{
    $(this).show();
  }).bind("ajaxComplete", function(){
    $(this).hide();
  });
 
$.post("login.php",{username: username, password: password,pass: pass, hash:hash }, function(welcome) {
modearr = welcome.split("|");
//alert(welcome);
if(modearr.length<2)
{
changehash();
ShowInfoBox(welcome);
return;
}
if(parseInt(modearr[1])==1)
{
if(modearr[0] =="2")
window.location='createChar.php';
else
window.location='index.php';
}else{
var strhtml = '<table width="100%" height=60><tr><td align=left style="color:#844021;" colspan=2><table><tr><td>秦时明月online正在封闭测试。</td></tr></table></td></tr><tr><td width="50%" align=left><table><tr><td>请输入您的激活码</td><td><input type="text" class="input_hj" maxlength="15" size="15" id="acitvecode" name="acitvecode" /></td></tr></table></td></tr>';
strhtml += '<tr><td colspan=2 height=2></td></tr>';
strhtml += '<tr><td colspan=2><input class="button" type="submit" onclick="checkInviteCode('+modearr[0]+')" value="确定"></td></tr></table>';

$('#infoMsgId').html(strhtml);
$('.infodBC').height(100);
$('#infoMsgId').css('margin-top','-10px');
$('#infoMsgId').css('padding-top','0px');
$('#infoMsgId').css('padding-bottom','0px');
$('#infoboxId').jqmShow();
}
});
}

function login(){
startLogin();
}
function ShowInfoBox(strInfo)
{
strhtml = '<br><br><input class="button" type="button" onclick="HideInfoBox()" value="确定">';
strInfo += strhtml;
$('#infoMsgId').html(strInfo);
$('.infodBC').height(100);
$('#infoMsgId').css('padding-top','0px');
$('#infoMsgId').css('padding-bottom','0px');
$('#infoboxId').jqmShow();
}
function ShowWaitBox()
{
strInfo += strhtml;
$('.infodBC').height(100);
$('#infoMsgId').css('margin-top','10');
// $('#infoMsgId').html();
$('#infoboxId').jqmShow();
}

function HideInfoBox()
{
$('#infoboxId').jqmHide();

}
function changehash()
{
$.post("gethash.php",{val:Math.random(),randva2l:Math.random()}, function(inVal) {
var field = inVal.split("|");
if(field.length == 2)
{
$('#hashcode').html(field[0]);
$('#hashimage').html(field[1]);
}
});
}
</script>
<title>登入游戏</title>
</head><body><div class="myframe">
<div class="frame_top"></div> <div class="frame_left"></div>
<div class="frame_center">
<div class="enter">
<form action="" method="post" name="userlogin" onsubmit="return false"><span id="hashcode"><input type="hidden" value="3f8e8bb571cc086ca44e9605ad23ffde" name="hash" id="hashId"></span>
  <div class="enter_area"><span class="biaoti_type2_16_B">欢迎登入【百步飞剑】</span></div>
  <div class="enter_neikuang1"><input name="username" id="usernameId" type="text" class="input_hj" size="14" tabindex="1"></div>
  <div class="enter_neikuang2"><input type="password" name="password" id="passwordId" class="input_hj" size="14" tabindex="2"></div>
  <div class="enter_neikuang3"><input type="text" name="pass" id="passId" size="12" maxlength="5" class="input_hj"></div>   <div class="enter_idcode"><span id="hashimage" title="鼠标点击更换" onclick="changehash()" ><img src="font/7.gif" width="16"  height="20" alt="" border=0 align="top"><img src="font/8.gif" width="16"  height="20" alt="" border=0 align="top"><img src="font/8.gif" width="16"  height="20" alt="" border=0 align="top"><img src="font/3.gif" width="16"  height="20" alt="" border=0 align="top"></span></div>
  <div class="enter_starticon" onclick=login() ></div>
  <div class="enter_zhuce"><span class="import_type_12"><a href="http://www.playking.com/qgamew/createuser.php">免费注册</a></span><span class="white_tips_hui_12">|</span></div>
  <div class="enter_forget"><span class="link_type_12"><u>忘记密码</u></span></div>
</form>
</div>
</div> <div class="frame_right"></div>
<div class="frame_bottom"></div>
</div><!-- begin infobox box -->
<div id="infoboxId" class="infoDialog">
<div class="infodTL">
<div class="infodTR">
<div class="infodTC"></div>
</div>
</div> <div class="infodBL">
<div class="infodBR">
<div class="infodBC infodBC2">
<div class="infodMSG" id="infoMsgId">
msg
</div>
</div>
</div>
</div></div>
<!-- end write message box -->
</body>
</html>
====================================
现在想问下这个原因是什么,采用了什么技术?

解决方案 »

  1.   

    这个不是PHP的源码,只是PHP输出到浏览器前台的HTML和JavaScript代码
    这个浏览器都能查看HTML和JavaScript的全部代码,只是显示的方式不一样,IE不会将包含的其它js文件一次显示在同一个页面上,firefox会
      

  2.   

    我知道不是PHP的源代码,因为PHP在服务器送出数据时就被处理过的。不可能看到里面的源代码的。
    再问下有什么办法让IE将JS文件一次性显示在同一个页面上么?
      

  3.   

    一样啊,ie7
    <!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" />
    <link href="css/jquery.tooltip.css" rel="stylesheet" type="text/css" />
    <link href="css/mystyle.css" rel="stylesheet" type="text/css" />
    <link href="css/enter.css" rel="stylesheet" type="text/css" />
    <link href="css/npc_xiulian_gongji.css" rel="stylesheet" type="text/css" /><script type='text/javascript' src='js/jquery-1.3.2.min.js'></script>
    <script type='text/javascript' src='js/jquery.countdown.js'></script>
    <script type='text/javascript' src='js/jqModal.js'></script>
    <script type='text/javascript' src='js/jqDnR.js'></script>
    <script src="js/jquery.dimensions.js" type="text/javascript"></script>
    <script src="js/jquery.tooltip.js" type="text/javascript"></script><script>
    $(function () {
    $('#infoboxId')
    .jqm({
    overlay: 30});

    $('#hashimage').tooltip({track: false,delay: 0,showURL: false,showBody: " - ",fixPNG: true});
    });

    function checkInviteCode(mode){
    var activecode = $("#acitvecode").val()
    if(activecode.length<1){
    ShowInfoBox('请输入激活码!');
    }else{
    $('#infoboxId').jqmHide();
    .....