lundi 1 décembre 2014

I have code which refrshs div when I click on the div ,but it displays time in secs whn refrshd .I want to show the number of time it has refrshd


$(document).ready(function () {



var j = jQuery.noConflict();


j('.refresh').click(refreshDiv);


j('.refresh').css({

color: ""

});

function refreshDiv() {

j.ajax({

url: "refresh.php",

cache: true,

success: function (html) {

j(".refresh").html(html);

}
});
}


});


echo time(); ?> it displays time in seconds which is huge in numbers .I want to display the number of times I am refreshing the page like you have refreshed 5 times similar way.





Aucun commentaire:

Enregistrer un commentaire