PHP Classes

Message Box

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Message Box  
Subject:Message Box
Summary:Create a PHP class for internal message
Messages:6
Author:Larry
Date:2009-04-27 06:52:00
Update:2009-04-29 06:15:25
 

  1. Message Box   Reply   Report abuse  
Picture of Larry 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?

There are 5 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.