diff --git a/public/home/search.js b/public/home/search.js index c6fc2d586..fc4ad3b42 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -709,7 +709,7 @@ function page(current){ function showTip(tip, type,left,top) { var $tip = $('#tipmsg'); - $tip.stop(true).prop('class', 'alert alert-' + type).html(tip).css('left', left).css('top', top).css('position', 'relative').fadeIn(500).delay(2000).fadeOut(500); + $tip.stop(true).prop('class', 'alert alert-' + type).html(tip).css({'left':left,'top':top,'position':'relative'}).fadeIn(500).delay(2000).fadeOut(500); } function setPage(currentPage){