Home > Web Front-end > JS Tutorial > msn chat function in javascript Discuz code_javascript skills

msn chat function in javascript Discuz code_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 19:04:13
Original
1101 people have browsed it

Add the following 2 functions in javascript

function msnoperate(action, msn) {
var actionArray = new Array();
actionArray = {
'add' : 'http:// go.discuz.com/?app=msn&linkid=5&msn=' msn,
'chat' : 'http://go.discuz.com/?app=msn&linkid=6&msn=' msn
}

if(messengerInstalled()) {
window.open(actionArray[action]);
} else {
window.open('http://go.discuz.com/msn/msn .html','_blank','width=571, height=498');
}
}

function messengerInstalled() {
try {
new ActiveXObject(" MSNMessenger.P4QuickLaunch");
return true;
}
catch (e) {
return false;
}
}
Add the following content to the html code:
——————————————
Click the icon to chat with me! msn chat function in javascript Discuz code_javascript skills

msn chat function in javascript Discuz code_javascript skills

Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
php - discuz single sign-on problem
From 1970-01-01 08:00:00
0
0
0
How to install discuz in phpStudy
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template