Larry - 2009-04-27 07:03:38
Hi!
I'm creating a community for web designer and I want to insert a message box into my project.
For exemple, I just changed my personnal information and a "pop-up" said "Personnal information correctly updated!"
For displaying this, I use Jquery:
$(document).ready(function () {
$('.messages').animate({opacity: 1.0}, 4000);
$('.messages').fadeOut('slow');
$('span.closeMessages a').click(function () {
$(".messages").stop();
$('.messages').fadeOut('slow');
return false;
});
$('div.messages').click(function () {
$(".messages").stop();
$('.messages').fadeOut('slow');
return false;
});
});
I want to create a class that permit to just write a code like this:
my_echo('Personnal information correctly updated!');
Can somebody help me?