js中if (top.location != self.location) {top.location=self.location;}

top.location != self.location 就是说当前窗体的url和父窗体的 url是不是相同

如果相同执行top.location=self.location;},把窗体的url设成和本窗体一样。这个是为了防止别的网站嵌入你的网站的内容(比如用iframe嵌入的你的网站的页面)
 
http://hi.baidu.com/qkgztdd/blog/item/78d966fc12331a4dd6887d36.html#send破解
<!--STATUS OK-->

<html>

<head>

<meta http-equiv=content-type content="text/html; charset=gb2312" />

<title>百度帐号登录      </title>

<script language="javascript">

if (top.location != self.location) {

top.location=self.location;

}

function G(id){return document.getElementById(id);}

</script>

<link type="text/css" rel="stylesheet" href="/style/login.css?v=1.4" />

<style type="text/css">

	.login{padding-top:45px;background:#fff;position:relative;}

	.loginTab{position:absolute;top:0;_top:1px;background:#f9f9f9; border:none;border-bottom:1px solid #aaa;width:130px;height:40px;font:14px/40px "宋体";font-weight:bold;text-align:center;cursor:pointer;}

	.normal{left:0;_left:-10px;border-right:1px solid #aaa;width:129px;}

	.phone{right:0;_right:1px;}

	.current{background-color:#fff;border-bottom-color:#fff;}

</style>

<script type="text/javascript">



	bdShowVcode	= false;



var tpl = 'mn';

var ctrlVersion = '1,0,0,7'; //暂时固定不升级

var vcode = 0 == 0 ? "vcodeTr" : "vcodeTrp";

var vimgs = 0 == 0 ? "verifypic" : "verifypicp";

</script>

<script type="text/javascript" src="/js/login.js?v=20120116"></script>



<script type="text/javascript" src="/export/login_news.js?t=1329633689"></script>



<script type="text/javascript">

function sett_pwd() {

    try {

        if ("".length) {

        	if(0 == 0){

	            setTimeout(

	            function () {

	                if (G('trPassNorm').style.display != 'none') {

	                    G('normModPsp').focus()

	                }

	            }, 0);

        	}

            withUser(0);

        }else{

            withUser(0);

            withUser(1);

        }

    } catch (e) {}

}

function withUser(v){

    var id = v == 1 ? "username_normal" : "username_phone";

    with(G(id)){

        style.fontSize = '12px';

        style.color = '#999';

        value = G(id).title;

        blur();

    }

}

function showTab(tabs){

   if(tabs == 'phone'){

       G("errortd").innerHTML = "";

       G("normalLogin").style.display = "none";

       G("phoneLogin").style.display = "block";

       G("normal").className = "loginTab normal";

   }else{

       G("errortd_p").innerHTML = "";

	   G("phoneLogin").style.display = "none";

       G("normalLogin").style.display = "block";

       G("phone").className = "loginTab phone";

   }

   G("errortd").innerHTML = "";

   G("normModPsp").value = "";

   G(tabs).className = "loginTab "+tabs+" current";

}



function sett_pwd_load() {

    if (!G('normModPsp').value) {

        sett_pwd();

    }

}



function checkInput(input) {

    if (input.value == input.title) {

        with(input) {

            style.fontSize = '';

            style.color = '';

            value = '';

        }

    }

}



function restore(input,flag) {

    if(flag*1 == 1){

       if(input.value != input.title && input.value.length > 0 && (!input.value.match(/\d/) || input.value.length < 7 || input.value.length > 11)) G("errortd_p").innerHTML = get_err_str(58,'');

       else{

           if(256 == 256 || G("errortd_p").innerHTML == get_err_str(58,'')) G("errortd_p").innerHTML = '';

       }

    }

    if (!input.value.length) {

        with(input) {

            style.fontSize = '12px';

            style.color = '#999';

            value = input.title;

        }

    }

}



</script>



</head>

<body onLoad="sett_pwd_load()">

    <center>

        <div id="main" align="left">

            <table width="760" border="0" cellspacing="0" cellpadding="0" class="lg">

                <tr>

                    <td id="logotd"></td>

                    <td id="helptd" align="right" class="f14" style="padding-right:22px;padding-top:17px;"></td>

                </tr>

            </table>

            <div id="left">

                <table id="tptable" width="476" height="130" border="0" cellspacing="0" cellpadding="0">

                    <tr>

                        <td id="tptd0" width="214">

							<a href="http://news.baidu.com/" target="_blank"><img src="/img/accsecurity/xwdl.jpg" border="0"></a> 

						</td>

                        <td id="tptd2" valign="top" style="word-wrap:break-word;word-break:break-all;width:230px;padding-top:7px;padding-right:30px;color:#D6F3FB"><a href="#" class="tlk"> </td>

                    </tr>

                </table>

                <div id="tuiguang" class="b1"></div>

            </div>

            <div id="center">

            

                

            	<div class="b2">

				<strong class="f12">没有百度帐号?</strong>

				<div align="center"><input type="button" value="立即注册百度帐号" style="margin:10px 0 6px 0;width:140px" onClick="goreg();"></div>

				<hr size="0" style="border-top:1px solid #AAAAAA">

				<strong>百度注册用户请直接登录</strong>

				<table width="240" border="0" cellspacing="0" cellpadding="4">

				<form action="https://passport.baidu.com/?login" method="POST" onSubmit="return checkForm(this);">

				<input type="hidden" name="tpl_ok" value="">

				<input type="hidden" name="next_target" value="">

				<input type="hidden" name="tpl" value="mn">

				<input type="hidden" name="skip_ok" value="">

				<input type="hidden" name="aid" value="">

				<input type="hidden" name="need_pay" value="">

				<input type="hidden" name="need_coin" value="">

				<input type="hidden" name="pay_method" value="">

				<input type="hidden" id="u" name="u" value="http://www.baidu.com/">

				<input type="hidden" name="return_method" value="get">

				<input type="hidden" name="more_param" value="">

				<input type="hidden" name="return_type" value="">

				<input type="hidden" name="psp_tt" value="0">

				<input type="hidden" id="password" name="password" value="">

				<input type="hidden" name="safeflg" id="safeflg" value="">

				<input type="hidden" name="isphone" value="tpl">

				<tr><td id="errortd" colspan=2 align=left style="color: red ;"></td></tr>

				<script language="javascript">

				G("errortd").innerHTML = get_err_str(256,'');

				</script>

				        <tr> 

				                <td width="50" class="f14">帐 号:</td>

				                <td width="156"><input type="text" name="username" id="username" value="" title="用户名/验证邮箱" onFocus="checkInput(this)" onBlur="restore(this)" onChange="chechUserOld('username')" class="ip"/></td>

				        </tr>

				        <tr id="trPassNorm" style="display:none;"> 

				                <td width="50" class="f14" valign="top">密 码:</td>

				                <td width="156"><input type="password" id="normModPsp" value="" class="ip"/></td>

				        </tr>

						<tr id="trPassSafe" style="display:none;"> 

				                <td width="50" class="f14" valign="top">密 码:</td>

				                <td width="156" id="tdSafeCont"></td>

				        </tr>

				        <tr id="vcodeTr" style="display:none;">

				                <td class="f14" valign="top">验证码:</td>

				                <td><input type="text" name="verifycode" class="ip" style="width:60px" maxlength="4"/>

				                <br />

				                <span class="fgy">请输入下面的字符</span><br />

				                <img src="/?verifypic" width="100" height="40" id="verifypic" /> <a href="javascript:newverifypic();" title="看不清左边的字符">看不清?</a></td>

				        </tr>

				        <tr id="trRem1">

				               <td></td>

								<td><span class="f13"><input name="mem_pass" id="mem_pass"  checked="checked"  type="checkbox"><label for="mem_pass">记住我的登录状态</label></span>

				</td>

				      </tr>

				       <tr id="trRem2">

							<td></td>

							<td><span class="mespasstip">使用公用电脑请勿选择该项</span></td>

				     </tr>

				     <tr> 

							<td > </td>

							<td> <input type="submit" value=" 登录 "/>  <a href="https://passport.baidu.com/?getpass_index">忘记密码?</a></td>

					 </tr>

				</form>

				</table>

				</div>

            

                



                <div id="question" class="b2"> 

                </div>

            </div>

            <div id="right"> </div>

            <br clear="all">

            <div class="line"> </div>

            <div id="ft">©2012 Baidu</div>

        </div>

    </center>

    <div id="bdNextTarget" style="display:none;"></div>

    <div id="check_username_script" style="display:none;"></div>



    <script type="text/javascript">

    <!--

    var g_isok = false;

    var regurl = "https://passport.baidu.com/?reg&tpl=mn";

    

    var regtarget = G("bdNextTarget").innerHTML; 



    if(typeof(arrTopic)!="undefined")

    {

        var g_isok=true;

        var curid = Math.floor(Math.random() * arrTopic.length);

    }



    sett();

    sett_pwd();







    //-->

    </script>

</body>

</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值