查看: 1548|回复: 1
收起左侧

[已解决] 求达人分析这段代码

 关闭 [复制链接]
ren52jing
发表于 2011-7-16 22:56:48 | 显示全部楼层 |阅读模式
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=javascript src="twwebdefine.js"></script>
<script>twRS(_neTitle);</script>
<style type="text/css">
<!--
body {
        background-color: #FfFfFf
}
td {
        font-size: 14px;
        line-height: 180%;
color="#606060"
}
.t14 {
        font-size: 16px;
        line-height: 150%;
}
A:link {
        font-size:12px;
        color: #1F72D0
}
A:visited {
        font-size:12px;
        color: #1F72D0
}
A:active {
        font-size:12px;
        color: #033B7D
}
A:hover {
        font-size:12px;
        color: #FF5A00
}
A.cb:link {
        font-size:14px;
        color: #1F72D0
}
A.cb:visited {
        font-size:14px;
        color: #1F72D0
}
A.cb:active {
        font-size:14px;
        color: #033B7D
}
A.cb:hover {
        font-size:14px;
        color: #FF5A00
}
.tlb {
        border-style:solid;
        border-width:1px 1px 0 1px;
        border-color:#ccc;
}
.bb {
        border-bottom:1px solid #ccc;
}
.bl {
        border-left:1px solid #ccc;
}

a.a_c{
        padding-right:25px;
        font-size:14px;
        color:#1F72D0;
        text-decoration:underline;
        background:url(callapse.gif) 90% 50% no-repeat;
}
a.a_c:link,a.a_c:visited{
        padding-right:25px;
        font-size:14px;
        color:#1F72D0;
        text-decoration:underline;
        background:url(callapse.gif) 90% 50% no-repeat;
}
a.a_c:hover,a.a_c:active{
        color:#1F72D0;
        font-size:14px;
        background:url(callapse_hover.gif) 90% 50% no-repeat;
}

a.a_e{
        padding-right:25px;
        font-size:14px;
        color:#1F72D0;
        text-decoration:underline;
        background:url(expand.gif) 90% 50% no-repeat;
}
a.a_e:link,a.a_e:visited{
        padding-right:25px;
        font-size:14px;
        color:#1F72D0;
        text-decoration:underline;
        background:url(expand.gif) 90% 50% no-repeat;
}
a.a_e:hover,a.a_e:active{
        font-size:14px;
        color:#1F72D0;
        background:url(expand_hover.gif) 90% 50% no-repeat;
}
-->
</style>
</head>
<SCRIPT language=JavaScript>
var securityId = external.twGetSecurityID(window);

function OnGoogleSearch()
{
        surl = "http://www.google.cn/search?client=aff-worldbrowser&channel=errorpage&forid=1&ie=utf-8&oe=UTF-8&hl=zh-CN&q=" + encodeURI( searchtext.value );
        window.open( surl );
}
function OnBaiduSearch()
{
        surl = "http://www.baidu.com/baidu?word="+searchtext.value+"&tn=ichuner_4_pg";
        window.open( surl );
}
function OnSougouSearch()
{
        surl = "http://www.sogou.com/sogou?query="+searchtext.value+"&pid=sogou-addr-6311b2f8bde6a1c3";
        window.open( surl );
}
</script>
<SCRIPT language=VBScript>
Function RequestQueryString( url, ArgName )
        On Error Resume Next
        Dim retVal
        dim nPos, tmpArgVal, ArrTmp
        URL        = trim(url)
        ArgName        = trim(ArgName)
        retVal        = ""

        If url = "" Or IsNull(url) Then
                If IsObject(parent.location) Then
                        url = parent.location.href
                ElseIf IsObject(location) Then
                        url = location.href
                Else
                        url = location
                End If
        End If

        If Len(ArgName) > 0 Then
                If right( ArgName, 1 ) <> "=" then
                        ArgName = ArgName & "="
                end if
                nPos = InStr( LCase(url), LCase(ArgName) )
                if nPos > 0 then
                        tmpArgVal = right( url, len(url)-nPos+1 )
                        tmpArgVal = right( tmpArgVal, len(tmpArgVal)-len(ArgName) )
                        ArrTmp    = split( tmpArgVal, "&" )
                        retVal    = ArrTmp(0)
                End If
        Else
                If InStr( url, "?" ) > 0 Then
                        ArrTmp = split( url, "?" )
                        retVal = ArrTmp(UBound(ArrTmp))
                End If
        End If
        RequestQueryString = retVal

        if err.number <> 0 then
                err.clear
        end if
End Function

strUrl = RequestQueryString( url, "url" )
strDomain = RequestQueryString( url, "domain" )
strErrName = RequestQueryString( url, "code" )
</script>
<body topmargin="8" leftmargin="5">
<div style="padding-top:10px;">
<table width="700" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td rowspan="2" width="70" valign="top"><div align="center"><img src="info_1.gif" width="46" height="46"></div></td>
    <td><table width="100%">
        <tr>
          <td width="50%"><font color="#000000"><strong><script type="text/javascript">twRS(_nePageErrorTitle)</script></strong></font></td>
          <td width="50%" align="right"><span style="color:gray;font-size:14px" id="code"></span></td>
        </tr>
      </table>
      <HR SIZE="1" COLOR="b2bad3">
    </td>
  </tr>
  <tr>
    <td><table width="630">
            <tr>
                <td height="35"><script type="text/javascript">twRS(_nePageErrorOption1);</script></td>
        </tr>
        <tr>
          <td height="35"><script type="text/javascript">twRS(_nePageErrorOption2)</script></td>
        </tr>
      </table>
                  <script type="text/javascript">urla.href = strUrl;code.innerHTML = parseInt(strErrName)<1000?strErrName:"";</script>
      <table width="620">
        <tr>
          <td height="30" style="padding-top:10px"><script type="text/javascript">twRS(_neSearchLabel)</script>
            <input name="searchtext" type="text" size="30">
            <input id="googleSE" type="submit" name="Submit3" value="" onClick="javascript:OnGoogleSearch();" style="width:80px">
            <input id="baiduSE" type="button" name="Submit22" value="" onClick="javascript:OnBaiduSearch();" style="width:80px">
            <script type="text/javascript">
                        //<![CDATA[
                        document.getElementById("googleSE").value = _neSearchEngine.google;
                        document.getElementById("baiduSE").value = _neSearchEngine.baidu;
                        //]]>
                        </script>
          </td>
        </tr>
      </table></td>
  </tr>
</table>
<script type="text/javascript">
var DisplayMgr = {
        _initialized:false,
        setDisplay:function(b,el){
                var news = document.getElementById('news');
                if(b){
                        if(!this._initialized){
                                var frame = document.getElementById("newsFrame");
                                frame.src = "http://www.ioage.com/web/frame_naverror.html";
                                this._initialized = true;       
                        }
                        news.style.display='block';
                        el.className='a_e';
                        external.SetOptionValue(securityId,"option","ep_related","1");
                }else{
                        news.style.display='none';
                        el.className='a_c';               
                        external.SetOptionValue(securityId,"option","ep_related","0");
                }
        },
        reverse:function(el){
                if(document.getElementById("news").currentStyle.display == "block")
                        this.setDisplay(false,el);
                else
                        this.setDisplay(true,el);
        },
        init:function(){
                var defValue = external.GetOptionValue(securityId,"option","ep_related");
                if(!defValue)
                        defValue = 1;
                if(defValue && parseInt(defValue) == 1){
                        this.setDisplay(true,document.getElementById("displayCtrl"));
                }
        }
}
window.attachEvent("onload",function(){
        DisplayMgr.init();
});
</script>
<div style="width:710px;text-align:right;padding-right:10px;">
        <a style="line-height:18px;padding-top:3px;padding-bottom:3px" id="displayCtrl" href="javascript:void(0)" class="a_c" onClick="DisplayMgr.reverse(this)" hidefocus="true"><script type="text/javascript">twRS(_nePageNewsCtrl)</script></a>
        <hr size="1" color="b2bad3" style="margin:0 0 0 70px;padding:0">
</div>
<div id="news" style="margin-top:10px;width:710px;display:none;">
<iframe frameborder="0" style="margin:0;padding:0;width:720px;height:350px;" src="" id="newsFrame" scrolling="no"></iframe>
</div>
<script src='http://w.cnzz.com/c.php?id=30000496' language='JavaScript' charset='gb2312'></script>
</body>
</html>


一个HTML代码,在关闭这个页面时会自动弹出另外一个淘宝页面,屏蔽了淘宝之后,也一样会弹出一个空白页面。
怎么才能完全屏蔽网页的自动弹出?
用的世界之窗2.4
洛神红茶_┉
发表于 2011-7-16 23:01:47 | 显示全部楼层
好长.....
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2025-11-5 04:09 , Processed in 0.175247 second(s), 17 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表