百度搜索和360搜索自动收录推送代码

360 自动收录

<script>
(function(){
var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?e0e9d9a5060e23cf5cc34c84d7cd9d61":"https://jspassport.ssl.qhimg.com/11.0.1.js?e0e9d9a5060e23cf5cc34c84d7cd9d61";
document.write('<script src="' + src + '" id="sozz"><\/script>');
})();
</script>

百度推送:

<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
上一篇:360度动态罗盘时钟HTML源码


下一篇:字节跳动 京东 360 网易面试题整理,透彻分析源码