Home > Article > Web Front-end > How to pop up a QQ temporary dialog box on a web page
This time I will show you how to pop up a QQ temporary dialog box on a web page, what are the things to note , the following is a practical case, let’s take a look .
Actually, this is very simple. We add an a tag to the img, and then<a href='tencent://message/?uin=QQ号码&Site=网站地址&Menu=yes'></a>Actually there is a drawback to writing this way, that is, if the other party is not your friend, you need to add a friend Wait for the other party to verify before initiating a conversation.
So how to avoid this disadvantage? That is to use Tencent's QQ Online-QQ communication component, http://wp.qq.com/consult.html
Use the specified QQ number to log in to this address. Then generate a piece of code similar to the following online:
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=******&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:******:41" alt="哟哟哟" title="哟哟哟"/></a>In this case, as long as it can be achieved, the temporary dialog box will pop up directly. That is, QQ Online's temporary dialog box without adding friends.
(Personally, I think this may be because Tencent has agreed to manage fixed permissions. Here, personal QQ permissions are opened, and temporary dialog boxes can be initiated without adding friends. It also provides certain facilities for everyone to initiate temporary sessions.
Interface,)
meta name="" content="How to use
How to use trigger method to achieve no need Click the file type input to pop up the file selection dialog box
The above is the detailed content of How to pop up a QQ temporary dialog box on a web page. For more information, please follow other related articles on the PHP Chinese website!