又碰到了Unexpected identifier 求解决
var xmlHttp;
function S_xmlhttprequest()
{
if(window.ActiveXobject)
{
xmlHttp=new ActiveXobject('Microsoft.XMLHttp');
}
else
{
xmlHttp=new XMLHttpRequest();
}
}
function funphp100(url)
{
S_xmlhttprequest();
xmlHttp.open("GET","for.php?id="+url,true)
xmlHttp.onreadystatechange=byphp;
xmlHttp.send(null);
}
function byphp()
{
if(xmlHttp.readyState == 1)
{
document.getElementById('php100').innerHTML="<img src="loading.gif">"; // Unexpected identifier
}
if(xmlHttp.readyState == 4 && xmlHttp.status == 200){
var byphp100= xmlHttp.responseText;
document.getElementById('php100').innerHTML=byphp100;
}
}