koinu
04-12-2005, 10:04 PM
is there any reason at all that this javascript would refuse to set the src to the new object in IE6? It works fine in Firefox and NS.
function updateImage(theitemid, theitemproc){
var ms;
Today = new Date();
ms = Today.getUTCMilliseconds();
newimg="avatar_functions3.php?action=equip&item_id="+theitemid+"&item_proc="+theitemproc+"&auth="+ms;
if(document.getElementById){
document.getElementById("avatar_image").src= newimg;
}else if(document.all&&!document.getElementById){
document.all.avatar_image.src= newimg;
}
}
function updateImage(theitemid, theitemproc){
var ms;
Today = new Date();
ms = Today.getUTCMilliseconds();
newimg="avatar_functions3.php?action=equip&item_id="+theitemid+"&item_proc="+theitemproc+"&auth="+ms;
if(document.getElementById){
document.getElementById("avatar_image").src= newimg;
}else if(document.all&&!document.getElementById){
document.all.avatar_image.src= newimg;
}
}