Cómo incluir el Messenger en una página web

22/08/2003 - 19:00 por Ramón | Informe spam
Hola,

recientemente he visto en www.kamisetas.com (no es publicidad) que
integra el messenger en la web. He estado buscando y no consigo encontrar
en ningún sitio algún how-to o manual. ¿Sabe alguien cómo se hace?

Muchas gracias y un saludo, Ramón.

Preguntas similare

Leer las respuestas

#1 Webmaster Tiendainformaticatotal.com
23/08/2003 - 00:35 | Informe spam
ramon y pq no pillas el codigo fuente y lo usas tu???, esto solo te vale
para el usuario que te visita, en ningun momento le informa al usuario si
estas tu o no conectado.

salu2

/-CODIGO FUENTE PARA USAR MSN EN LA
WEB
// Declare Microsoft .NET Messenger constants

var MISTATUS_UNKNOWN = 0;
var MISTATUS_OFFLINE = 0x0001;
var MISTATUS_ONLINE = 0x0002;
var MISTATUS_INVISIBLE = 0x0006;
var MISTATUS_BUSY = 0x000A;
var MISTATUS_BE_RIGHT_BACK = 0x000E;
var MISTATUS_IDLE = 0x0012;
var MISTATUS_AWAY = 0x0022;
var MISTATUS_ON_THE_PHONE = 0x0032;
var MISTATUS_OUT_TO_LUNCH = 0x0042;
var MISTATUS_LOCAL_FINDING_SERVER = 0x0100;
var MISTATUS_LOCAL_CONNECTING_TO_SERVER = 0x0200;
var MISTATUS_LOCAL_SYNCHRONIZING_WITH_SERVER = 0x0300;
var MISTATUS_LOCAL_DISCONNECTING_FROM_SERVER = 0x0400;


// E-mail address used to contact us
var strEMailAddress = "";

// Subject used to contact us via e-mail
var strMailSubject = "Consulta";





function body_onLoad()
{

document.all.StatusLink.innerHTML = "";
file://document.all.StatusLink1.innerHTML = "";
file://document.all.StatusLink2.innerHTML = "";


// Check if .NET Messenger controls are instantiated, otherwise Microsoft
.NET Messenger might not be installed on the users local machine
if ( "undefined" != typeof(objMessenger) && null != objMessenger.object &&
"undefined" != typeof(objMessengerApp) && null != objMessengerApp.object )
{

// Check if the user is No conectados
if (objMessenger.LocalState == MISTATUS_OFFLINE)
{

// User is No conectados, display logon button
document.all.StatusLink.innerHTML = "¡No estas conectado!";
document.all.StatusLink1.innerHTML = "<input class='nor' type='button'
id='Logon' value='Iniciar .NET Messenger' onClick='Javascript:Logon();'
style='float:center'>";
document.all.StatusLink2.innerHTML = "Puedes mandarnos un "+ "<a
href=javascript:OpenDirectSession('')>" +"e-mail</a>";

}
else
{

// Check if we are online
if (objMessenger.LocalState == MISTATUS_ONLINE)
{

// User is online
document.all.StatusLink.innerHTML = "Hola actualmente <br> estas <b>En
línea</b>";

}

// Check if we are busy
else if (objMessenger.LocalState == MISTATUS_BUSY)
{

// User is busy
document.all.StatusLink.innerHTML = "Hola actualmente <br> estas <b>No
disponible</b>";


}

// Check if we are BRB
else if (objMessenger.LocalState == MISTATUS_BE_RIGHT_BACK)
{

// User is BRB
document.all.StatusLink.innerHTML = "Hola tu status<br> es <b>Vuelvo
enseguida</b>";

}

// Check if we are idling
else if (objMessenger.LocalState == MISTATUS_IDLE)
{

// User is idling
document.all.StatusLink.innerHTML = "Hola actualmente<br> estas
<b>Ausente</b>";


}

// Check if we are away
else if (objMessenger.LocalState == MISTATUS_AWAY)
{

// User is away
document.all.StatusLink.innerHTML = "Hola actualmente<br> estas
<b>Ausente</b>";


}

// Check if we are on the phone
else if (objMessenger.LocalState == MISTATUS_ON_THE_PHONE)
{

// User is on the phone
document.all.StatusLink.innerHTML = "Hola actualmente<br> estas <b>Al
teléfono</b>";


}

// Check if we are out to lunch
else if (objMessenger.LocalState == MISTATUS_OUT_TO_LUNCH)
{

// User is out to lunch
document.all.StatusLink.innerHTML = "Hola tu status es<br> <b>Salí a
comer</b>";


}

// Check if we appear offline
else if (objMessenger.LocalState == MISTATUS_INVISIBLE)
{

// User is invisible
document.all.StatusLink.innerHTML = "Hola actualmente<br> estas <b>Sin
conexión</b>";


}
}
}
else
{

// The .NET Messenger controls didn't get instantiated correctly, the user
might not have .NET Messenger installed


document.all.StatusLink1.innerHTML = "Probablemente no tienes instalada la
última versión<br>de <b>MSN Messenger</b>, puedes instalarlo pulsando <a
href='http://messenger.msn.com' target='_blank'>aquí</a>";
document.all.StatusLink.innerHTML = "Puedes hablar con nosotros,<br>
utilizando <b>MSN Messenger</b>";
document.all.StatusLink2.innerHTML = "";

}
}

function OpenDirectSession(strIMAddress)
{
// Check if we are NOT No conectados or invisble
if (objMessenger.LocalState != MISTATUS_OFFLINE)
{
if (objMessenger.LocalState != MISTATUS_INVISIBLE)
{


// Open IM chat window with IM address supplied
objMessengerApp.LaunchIMUI(strIMAddress)
}
else
{
// Open default mail client
var strMailURL = "mailto:" + strEMailAddress + "?subject=" +
strMailSubject
self.location.href = strMailURL
}
}
else
{
// Open default mail client
var strMailURL = "mailto:" + strEMailAddress + "?subject=" +
strMailSubject
self.location.href = strMailURL
}
}

function AddNewContactUI(strIMAddress)
{
// Check if we are NOT No conectados
if (objMessenger.LocalState != MISTATUS_OFFLINE)
{
// Display .NET Messenger add contact UI with IM address supplied
objMessengerApp.LaunchAddContactUI(strIMAddress);
}
}

function Logon()
{
// Check if we are No conectados
if (objMessenger.LocalState == MISTATUS_OFFLINE)
{
// Open .NET Messenger logon UI
objMessengerApp.LaunchLogonUI();
}
}
function Valida() {
var cLB = unescape("%0d"); // creates a line break;
var cdia = "", cmes = "", cano = "", ccapital= "",cBase = "";
var valor;


if (document.Bus.Bus.value.length == 0 ) cdia = "Debe introducir alguna
palabra" + cLB;
if (document.Bus.Bus.value.length > 0 & document.Bus.Bus.value.length < 3 )
cdia = "Debe introducir por lo menos 3 caracteres" + cLB;
valor = document.Bus.Bus.value;
if (valor.indexOf("?") >= 0 | valor.indexOf("%") >= 0 ) cdia = "Ha
introducido un caracter no valido" + cLB;
cBase = cdia
if (cBase.length > 0)
{
alert("Error:" + cLB + cLB + cBase);
}
else{

document.Bus.submit();
}
}

/--FIN DEL
CODIGO--


Ramón escribió en el mensaje de noticias

Hola,

recientemente he visto en www.kamisetas.com (no es publicidad) que
integra el messenger en la web. He estado buscando y no consigo encontrar
en ningún sitio algún how-to o manual. ¿Sabe alguien cómo se hace?

Muchas gracias y un saludo, Ramón.
Respuesta Responder a este mensaje
#2 Enrique WA
28/09/2003 - 20:13 | Informe spam
Pues no le veo espectacularidad alguna, no es cosa del otro mundo pues sólo
es una liga hacia la página de msn.com
Saludos.


"Ramón" escribió en el mensaje
news:
Hola,

recientemente he visto en www.kamisetas.com (no es publicidad) que
integra el messenger en la web. He estado buscando y no consigo encontrar
en ningún sitio algún how-to o manual. ¿Sabe alguien cómo se hace?

Muchas gracias y un saludo, Ramón.
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida