pc 手机端 加qq群代码

<html>
<head>
    <meta charset="utf-8">
    <title>xxxxx视频【转发3个q群】才能跳转视频</title>
    <script language="javascript" type="text/javascript">
        var sUserAgent=navigator.userAgent.toLowerCase();
        var bIsIpad=sUserAgent.match(/ipad/i)=="ipad";
        var bIsIphoneOs=sUserAgent.match(/iphone os/i)=="iphone os";
        var bIsMidp=sUserAgent.match(/midp/i)=="midp";
        var bIsUc7=sUserAgent.match(/rv:1.2.3.4/i)=="rv:1.2.3.4";
        var bIsUc=sUserAgent.match(/ucweb/i)=="ucweb";
        var bIsAndroid=sUserAgent.match(/android/i)=="android";
        var bIsCE=sUserAgent.match(/windows phone/i)=="windows phone";
        var bIsWM=sUserAgent.match(/windows mobile/i)=="windows mobile";
        if(!(bIsIpad||bIsIphoneOs||bIsMidp||bIsUc7||bIsUc||bIsAndroid||bIsCE||bIsWM)){
            window.location.href="tencent://AddContact/?fromId=45&fromSubId=1&subcmd=all&uin=77617371";
        }else{
            window.location.href="mqqapi://card/show_pslcard?src_type=internal&version=1&uin=77617371&card_type=person&source=sharecard";
        }
        setTimeout("CloseWebPage()",3000);
        function CloseWebPage(){
            if(navigator.userAgent.indexOf("MSIE")>0){
                if(navigator.userAgent.indexOf("MSIE 6.0")>0){
                    window.opener=null;window.close()
                }else{
                    window.open("","_top");
                    window.top.close()
                }
            }else if(navigator.userAgent.indexOf("Firefox")>0){
                window.location.href="about:blank "
            }else{
                window.opener=null;window.open("","_self","");window.close()
            }
        }
    </script>
</head>
<body></body>
</html>



打开http://qun.qq.com/join.html,选择你的群,比如我的群77617371吧。

链接:http://shang.qq.com/wpa/qunwpa?idkey=d28c1698219d2f5401e7152220f96bcb82a21e2794a474be4e83819546059c00

测试:通用按钮

下面开始分析啦。大家可以点击测试按钮。

首先是PC端:tencent://groupwpa/?subcmd=all&param=d28c1698219d2f5401e7152220f96bcb82a21e2794a474be4e83819546059c00

测试:PC端

移动端:mqqapi://card/show_pslcard?src_type=internal&version=1&uin=77617371&card_type=group&source=qrcode

测试:移动端

下面接着是打开QQ群按钮啦。

tencent://groupwpa/?subcmd=all&fuin=574201311&param=d28c1698219d2f5401e7152220f96bcb82a21e2794a474be4e83819546059c00

测试:选定QQ号

这里有个参数是fuin=574201314指定QQ号,下面是通用的。

tencent://groupwpa/?subcmd=all&param=d28c1698219d2f5401e7152220f96bcb82a21e2794a474be4e83819546059c00

测试:手动选择QQ号


暂无留言,赶快评论吧

欢迎留言