Best ways to display notifications with jQuery

后端 未结 5 1232
悲&欢浪女
悲&欢浪女 2020-12-23 17:57

I have a form which is a simple CRUD.

I am trying to display a cool looking success message when user enters or deletes a record. I\'ve seen this a lot around the

5条回答
  •  臣服心动
    2020-12-23 18:34

    Your question is a little vague as a "cool looking success message" is not much to go with.

    If you are interested, however, through answering questions here I have replicated the functionality of two of Stackoverflow's "notification" features that people seem to enjoy: the banner at the top of the page that comes up when you get a new badge, etc. and the red boxes around the site whenever something goes wrong with an action. I've used techniques similar to these to show success messages in my applications and my clients have loved them.

    • To show the top banners - demo
    • To show the red boxes - demo

    The examples are very simple, as all it is doing is showing a DIV somewhere in the document and fading it in and out depending on the situation. That's all you really need to get started.

    In addition to this, if you are a Mac fan (and even if you're not) there is the jQuery Growl plugin which is based on the OS X notification system. I am also a big fan of using the BeautyTips plugin to show messages near an element, as the bubbles are very nice and easy to style.

提交回复
热议问题