i'm writing some custom wordpress pages, and i want that after an action where the user has addess an item to a list (after the user press the submit button and the page reloads showing the updated list) a messagge appears on top of the content area saying something like "the item xxxxxxx has been added." and then fades away after a couple of seconds (or it could stay with an "x" to the right to close it).
There is any function in Wordpress that allows meto do that? The fading is optional, but i want to give the customer some kind of feedback (maybe in a green-border on white box or something like that).
Also optional but interesting would be to have also the error message, all the same just red border instead of green.
The message has to show inside the page, not over and has not to be modal nor an js alert.