Link to home
Start Free TrialLog in
Avatar of tim_carter
tim_carter

asked on

How to make a auto popup like when MSN shows that someone has logged on

Hi guys

How do you make a popup like when msn show you a new message. i know many dating sites have it to show you that you have mail. Does anyone know of a component that can do that? like activex or something like that?

Thanks
Avatar of ray-solomon
ray-solomon
Flag of United States of America image

You can use a little javascript, html and css to accomplish this.

Create the look in html/css, then use JavaScript to give it popup functionality from the bottom-right corner of the page which consists of some div tags and a JavaScript timer. Then use an ajax call to a server-side script that will query a database periodically and determine if the popup needs to show or not.

Your server-side script should return the exact message you need to be displayed in the popup, or if there is no output being returned, then the JavaScript will not initiate the popup.
Avatar of tim_carter
tim_carter

ASKER

i know this could be done with a div.. but i have seen some dating sites, actually showing this box even if the browser is minimized. I mean, almost functioning like a part of windows itself.? that cannot be done with a div
ASKER CERTIFIED SOLUTION
Avatar of ray-solomon
ray-solomon
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks