function registerme() { HideMyframeBoxes('ثبت نام'); readyAjaxPlaceHolder(600); $.get("http://www.danayab.com/app_upload/applications/users/console/ajax/forms/register.aspx?lang=fa&sesid=SIs24ea5d41p90la28wg49ej&ud=0&hrphboxHeight=" + hrphboxHeight + "&datetime=" + hrphcurrentTime, function(data) { $("#AjaxPlaceHolder").html(data); }); } var getsitehitsact; function getsitehits() { $.get("http://www.danayab.com/app_upload/applications/viewstat/API/hit.aspx?lang=fa&datetime=" + hrphcurrentTime, function(data) { var ttl = 0, ttltd = 0, ttlyd = 0, ttl1w = 0, ttl1m = 0, ttl3m = 0, ttl12m = 0; var splhits = data.split("|"); try{ ttl = splhits[0]; }catch(exhts0){} try{ ttl12m = splhits[1]; }catch(exhts1){} try{ ttl3m = splhits[2]; }catch(exhts2){} try{ ttl1m = splhits[3]; }catch(exhts3){} try{ ttl1w = splhits[4]; }catch(exhts4){} try{ ttlyd = splhits[5]; }catch(exhts5){} try{ ttltd = splhits[6]; }catch(exhts6){} $('#sitestatic6').html(ttl); $('#sitestatic5').html(ttl12m); $('#sitestatic4').html(ttl3m); $('#sitestatic3').html(ttl1m); $('#sitestatic2').html(ttl1w); $('#sitestatic1').html(ttlyd); $('#sitestatic0').html(ttltd); }); try{clearTimeout(getsitehitsact);}catch(ext){} getsitehitsact = window.setTimeout("getsitehits();", 45000); } $(document).ready(function() { getsitehits(); });