function getContent(page, params, elementid)
{
//params has to have following format
//i.e.: c=1&id=3....
//page is the server side script. include full path
//i.e. ../scripts/myscript.php
//Clear our fetching variable
var xmlhttp=false;
//Try to create active x object
try {xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');}
catch (e)
{
try {xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');}
catch (E)
{
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
{
xmlhttp = new XMLHttpRequest();
}
//This is the path to the PHP file on the server
var file = page+params;
//Open the file through GET, and add the page we want to retrieve as a GET variable
xmlhttp.open('GET', file, true);
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==1)
if(document.getElementById(elementid))
document.getElementById(elementid).innerHTML = document.getElementById(elementid).innerHTML;
if(xmlhttp.readyState==4)
{
//Make sure there is something in the content variable
var content = xmlhttp.responseText;
//The content data which has been retrieved
if( content )
{
//Change the inner content of your div to the newly retrieved content
if(elementid != "undifined" && document.getElementById(elementid).innerHTML != content)
document.getElementById(elementid).innerHTML = content;
}
}
}
//Nullify the XMLHttpRequest
xmlhttp.send(null)
setTimeout('getContent("http://www.myelvisworld.com/alert/", "check_true", "numEm")', 10000);
return;
}
getContent("http://www.myelvisworld.com/alert/", "check_true", "numEm");
I'm crazy about Elvis!!! I have a son called Aaron(I wonder why I chose that name)!!! I'm a very caring person a true Taurean (loyal and stubborn) LOL I love all kinds of music from the 50's to rock music. I love Ozzy Osbourne he's from my home town. I have met some great friends here and a very special person that I hold very dear to my heart! He rocks!!!
WHAT DO YOU LIKE ABOUT ELVIS
Everything!!!
WHAT WOULD YOU SAY TO HIM
Hi Elvis!!! I love your music, you are truely awesome. Let's be friends!
HOBBIES
ELVIS!!! Chatting to friends, reading, watching movies, spending time with my son, niece and nephew.