江湖路
专注AJAX和Moss

不多说,直接上代码:

 1 var statusId = '';
 2 var notifyId = '';
 3 function AddNotification() {
 4 notifyId = SP.UI.Notify.addNotification("Hello World!", true);
 5 }
 6 function RemoveNotification() {
 7 SP.UI.Notify.removeNotification(notifyId);
 8 notifyId = '';
 9 }
10 function AddStatus() {
11 statusId = SP.UI.Status.addStatus("Status good!");
12 SP.UI.Status.setStatusPriColor(statusId, 'red');
13 }
14 function RemoveLastStatus() {
15 SP.UI.Status.removeStatus(statusId);
16 statusId = '';
17 }
18 function RemoveAllStatus() {
19 SP.UI.Status.removeAllStatus(true);
20 }
posted on 2012-08-02 08:54  wengnet  阅读(611)  评论(1编辑  收藏  举报