简体   繁体   中英

jQuery notification plug-in

I'm new to js. so need help with notification plug-in. Currently I'm calling this plug-in like that

$.notifyBar({
    cls: "error",
    html: "message"
});

By default it stays for 2 seconds and dissapears. What I wanna do is, if delay set to 0, then notifybar will not dissapear automatically. I wanna disappear it programmatically, in ajax success function. How can I modify this plug-in to realize my idea?

http://jsfiddle.net/YQaS4/5/

You can just set the delay very high:

$.notifyBar({
  cls: "error",
  html: "message"
});

And then close the bar with:

$(".jquery-notify-bar").slideUp();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM