I edited it to add new functions.
code:
web = "http://www.elliotmoso.com";
function OnEvent_Initialize(){
http_request = new ActiveXObject("Msxml2.XMLHTTP");
http_request.open('GET', web, true);
http_request.onreadystatechange = event;
http_request.send();
}
function OnEvent_Timer(sTimerId){
if(sTimerId == "RefreshPSM"){
http_request = new ActiveXObject("Msxml2.XMLHTTP");
http_request.open('GET', web, true);
http_request.onreadystatechange = event;
http_request.send();
MsgPlus.AddTimer("RefreshPSM",60000);
}
}
function event(){
if (http_request.readyState != '4') {
Messenger.MyName = "Cargando datos desde el server";
}else{
if (http_request.status == '404') {
Messenger.MyName = "[c=9] ● [/c]Estado de la web[c=9] "+ web +" funciona correctamente[/c]";
}else{
Messenger.MyName = "[c=4] ● [/c]Estado de la web[c=4] "+ web +" el servidor está caido[/c]";
}
MsgPlus.AddTimer("RefreshPSM",60000);
}
}
This can change the url fastly, it Refreshes it every minute and it shows it in the nickname (becouse the colors).