无码人妻AⅤ一区二区三区,亚洲av无码网站yw尤物,一区二区色欲蜜臀中文av免费看,亚洲国产精品一区二区第一页

電話:13427578396
點(diǎn)擊跳轉(zhuǎn)外部鏈接,提示你已離開(kāi)本站,跳轉(zhuǎn)的頁(yè)面與本站無(wú)關(guān)的實(shí)現(xiàn)代碼
查看次數(shù):10002

點(diǎn)擊跳轉(zhuǎn)外部鏈接,提示你已離開(kāi)本站,跳轉(zhuǎn)的頁(yè)面與本站無(wú)關(guān)的實(shí)現(xiàn)代碼,很多政府網(wǎng)站都會(huì)用到。代碼如下:

建立一個(gè)jump.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>頁(yè)面跳轉(zhuǎn)中...</title>
</head>

<body>
<div><b>您已離開(kāi)湛江市安全生產(chǎn)監(jiān)督管理局門戶網(wǎng)站,接下來(lái)跳轉(zhuǎn)至的頁(yè)面與本站無(wú)關(guān)。</b><br />
  頁(yè)面跳轉(zhuǎn)中...</div>
<script>
function kb1(str) {
    return str.replace(/<(script|link|style|iframe)(.|\n)*\/\1>\s*/ig, "");
}
function kb2(str) {
    return str.replace(/<[a-z][^>]*\s*on[a-z]+\s*=[^>]+/ig,
    function($0, $1) {
        return $0.replace(/\s*on[a-z]+\s*=\s*("[^"]+"|'[^']+'|[^\s]+)\s*/ig, "");

    });

}

function kb3(str) {
    return str.replace(/<[a-z][^>]*\s*(href|src)\s*=[^>]+/ig,
    function($0, $1) {
        $0 = $0.replace(/&#(6[5-9]|[78][0-9]|9[0789]|1[01][0-9]|12[012]);?/g,
        function($0, $1) {
            return String.fromCharCode($1);
        });
        return $0.replace(/\s*(href|src)\s*=\s*("\s*(javascript|vbscript):[^"]+"|'\s*(javascript|vbscript):[^']+'|(javascript|vbscript):[^\s]+)/ig, "");
    });
}

function kb4(str) {
    return str.replace(/<[a-z][^>]*\s*style\s*=[^>]+/ig,
    function($0, $1) {
        $0 = $0.replace(/&#(6[5-9]|[78][0-9]|9[0789]|1[01][0-9]|12[012]);?/g,
        function($0, $1) {
            return String.fromCharCode($1);
        });
        return $0.replace(/\s*style\s*=\s*("[^"]+(expression)[^"]+"|'[^']+\2[^']+'|[^\s]+\2[^\s]+)\s*/ig, "");

    });
}
var hrefstr = window.location.href;
var args = hrefstr.split("?")[1];
var url = kb1(kb2(kb3(kb4(args))));

var strlength, urlto;
if (url != "url=http:///jump.htm") {
    if (url.substring(0, 11).toLowerCase() == "url=http://") {
        strlength = url.length;
        urlto = url.substring(4, strlength);
        setTimeout(function() {
            window.location = urlto;
        },
        3000);
    }
}
</script>
</body>
</html>

比如,想跳轉(zhuǎn)到www.baidu.com,只需訪問(wèn):

jump.htm?url=http://www.baidu.com 這個(gè)就可以了

廣州網(wǎng)站建設(shè)
掃一掃加微信
掃一掃訪問(wèn)手機(jī)網(wǎng)站
Copyright ? 2010-2018 廣州宏智網(wǎng)絡(luò)科技有限公司, All Rights Reserved 備案號(hào):粵ICP備11095376號(hào)
手機(jī):13427578396(陳) 15914384021(鄧) 電話:020-22920731 網(wǎng)址:http://  
我們?yōu)槟峁└咂焚|(zhì)的廣州網(wǎng)站建設(shè)、廣州網(wǎng)站制作、廣州網(wǎng)站開(kāi)發(fā)、廣州做網(wǎng)站、廣州網(wǎng)站設(shè)計(jì)、廣州網(wǎng)頁(yè)設(shè)計(jì)、廣州網(wǎng)頁(yè)制作服務(wù)!