function nextMsg () { if ( messages . length == 0 )
{
/ / once there is no more message, do Whatever you want alert ("redirecting");
} else {
/ / change content of message, fade in, wait, fade out and Continue with the next message
$ ('# message'). html (messages.pop ()). fadeIn (500). Delay (1000). fadeOut (500, nextMsg);}},
/ / list of messages to display var messages = ["Hello", "This is a website!", "You are now going to be redirected.", "Are you ready?", "You're now being redirected ..." ]. Reverse (),
/ / initially hide the message $ ('# message'). Hide (), / / start animation nextMsg ();
setTimeout(nextMsg (),3000)
function nextMsg () { if ( messages . length == 0 )
{
/ / once there is no more message, do Whatever you want alert ("redirecting");
} else {
/ / change content of message, fade in, wait, fade out and Continue with the next message
$ ('# message'). html (messages.pop ()). fadeIn (500). Delay (1000). fadeOut (500, nextMsg);}},
/ / list of messages to display var messages = ["Hello", "This is a website!", "You are now going to be redirected.", "Are you ready?", "You're now being redirected ..." ]. Reverse (),
/ / initially hide the message $ ('# message'). Hide (), / / start animation nextMsg ();
success: function(html){
$("#"+(id)).html(html)
setTimeout('$("#"+(id)).html("Priv")',5000);
function rating(r, id, ppo) {
function done() {
$("#"+(id)).html("Средняя оценка:" +(ppo))
}
$.ajax({
type: "POST",
url: "rating.php",
beforeSend: function(jqXHR, settings){
$('#ratin').html('<p>Loading....</p>');
},
data:'r=' + r + '&id=' + id,
success: function(html) {
$("#"+(id)).html(html);
},
complete: function(html) {
setTimeout(done, 1000)
}
});
}