js 点击按钮弹出添加qq号的窗口

html

   



js:

var qq_chat = true;

function PlayJsAdPopWin() {

  if (qq_chat) {

  popwin = window.location.href = 'tencent://message/?uin=qq号'

  }

};

$(".openqq").click(function(){

  setTimeout("PlayJsAdPopWin()", 1000);

});

你可能感兴趣的:(js 点击按钮弹出添加qq号的窗口)