js 点击按钮弹出添加qq号的窗口
2018-03-06 本文已影响15人
花花0825
html
<button class="openqq">点击添加QQ号</button>
js:
var qq_chat = true;
function PlayJsAdPopWin() {
if (qq_chat) {
popwin = window.location.href = 'tencent://message/?uin=qq号'
}
};
$(".openqq").click(function(){
setTimeout("PlayJsAdPopWin()", 1000);
});