mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9312 201d5d3c-b55e-5fd7-737f-ddc643e51545
28 lines
639 B
JavaScript
28 lines
639 B
JavaScript
(function($){
|
|
|
|
window.xeNotifyMessage = function(text, count){
|
|
var $bar;
|
|
|
|
$bar = $('div.notifyMessage');
|
|
if(!$bar.length) {
|
|
$bar = $('<div class="notifyMessage" />')
|
|
.hide()
|
|
.css({
|
|
position : 'absolute',
|
|
background : '#ff0',
|
|
border : '1px solid #990',
|
|
textAlign : 'center'
|
|
})
|
|
.appendTo(document.body);
|
|
}
|
|
|
|
h = $bar.html('<a href="'+current_url.setQuery('act','dispCommunicationMessages')+'">'+text+'</a>').height();
|
|
$bar.css('top', -h-4).show().animate({top:0});
|
|
|
|
// hide after 10 seconds
|
|
setTimeout(function(){
|
|
$bar.animate({top:-h-4}, function(){ $bar.hide() });
|
|
}, 10000);
|
|
};
|
|
|
|
})(jQuery);
|