Home  >  Article  >  Web Front-end  >  How to pop up a QQ temporary dialog box on a web page

How to pop up a QQ temporary dialog box on a web page

php中世界最好的语言
php中世界最好的语言Original
2018-02-10 10:33:034115browse

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=&#39;tencent://message/?uin=QQ号码&Site=网站地址&Menu=yes&#39;></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,)

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn