Thursday, 1 March 2012

call a function regularly , call a function after a particular time period, call function continue


function getdata(){
var langu = jQuery(“.goog-te-combo”).html(‘<option value=”">Select Lanugage</option><option value=”en”>English</option><option value=”ja”>Japanese</option>’);
jQuery(“.goog-te-gadget”).css({“margin-top”:”0px”});
intervaltime();
}
</script>



<script>
function intervaltime(){
window.setInterval(function(){
getdata();
}, 5000);
}
$(function() {
setTimeout(getdata, 3000);
});
</script>