Make a pulsating chat notification and remove the throb from the tab

This commit is contained in:
John McLear 2011-07-20 21:50:58 +01:00
parent fba2c5ccb2
commit 4b268f9579
4 changed files with 40 additions and 4 deletions

View file

@ -69,13 +69,13 @@ var chat = (function()
var count = Number($("#chatcounter").text());
count++;
$("#chatcounter").text(count);
//animation
$("#chatcounter").css({"font-weight": "bold"});
setTimeout('$("#chatcounter").css({"font-weight": "normal"})', 500);
// chat throb stuff -- Just make it throb in for ~2 secs then fadeotu
$('#chatthrob').html("<b>"+authorName+"</b>" + ": " + text);
$('#chatthrob').effect("pulsate", {times:1,mode:"hide"},2000);
}
self.scrollDown();
},
init: function()
{