PM notification pop-up

  • Bogey
  • Ounce of 'Zu'
  • Web Master
  • User avatar
  • Joined: 14 Jul 2005
  • Posts: 4221
  • Loc: Ozzu
  • Status: Offline

Post May 3rd, 2008, 10:23 pm

How does OZZU does it? I know that it has being said about it before but I still don't know how to do...

Here is the CSS for the DIV that I have now...
  1. .pmNotify {
  2.   position: absolute;
  3.   top: 15px;
  4.   left: 15px;
  5.   z-index: 7;
  6.   background-color: #CECECE;
  7.   width: 200px;
  8.   height: 50px;
  9. }

How can I make it so that the user can close the DIV with a simple [close] link?
01000010 01101111 01100111 01100101 01111001
My Developing Blog (5)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 3rd, 2008, 10:23 pm

  • Bogey
  • Ounce of 'Zu'
  • Web Master
  • User avatar
  • Joined: 14 Jul 2005
  • Posts: 4221
  • Loc: Ozzu
  • Status: Offline

Post May 4th, 2008, 1:07 pm

I'm using the following javascript to do that...

http://www.webmasterworld.com/forum91/441.htm

Except I don't need and don't use the showdiv thing... the only thing is, it shows again when you refresh the page, but I guess that's fine :)
01000010 01101111 01100111 01100101 01111001
My Developing Blog (5)
  • spork
  • Plastic Member
  • Silver Member
  • User avatar
  • Joined: 22 Sep 2003
  • Posts: 3500
  • Loc: Rochester, NY
  • Status: Offline

Post May 8th, 2008, 9:04 pm

PHP outputs either a 0 or a 1 depending on whether or not there's a PM, and JavaScript uses this value as a boolean value to determine whether or not to display the div.

Post Information

  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2008. Driven by phpBB © 2001-2008 phpBB Group.

 
 
 
 

Need a pre-made web design for your website?

Check out our templates here: Ozzu Templates


400+ FREE Website Templates. Download Now!