function showcount() { var showstat=1; var imgCount='30054'; if(showstat>0&&document.getElementById("divstat")){ document.getElementById("divstat").innerHTML=imgCount;} } window.setTimeout(showcount,3000)