Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: important messages

  1. #1
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default important messages

    hi, I want to show some messages when user first time arrives into my site... But I need that message to apear in index.php front in the middle. I come to site, everything will come grey, and in the middle i will see message with next button... Is it possible?/
    If you need more info, ask...
    THANKS A LOT

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    In onload make an overlay div that has 100% height 100% width that's display is block or something background color grey. put a next button in that div and onclick on that overlay divs display becomes none. If you want it to fade in and out like the lightbox look at jquery.

    For example: http://www.emanueleferonato.com/2007...script-needed/

  3. #3
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    When you say you want it to appear the first time a user visits your site, do you mean "a first time user", or anyone who visits the site, this is the first thing they see.

    If you are referring to a "first time user", then you'll need to use cookies.

  4. #4
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    that's like: i come to site, log in, and see this litebox. then i close it and log off. And now, i log in again, but litebox doesn't appear.

  5. #5
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    how i can manage it to be shown only then when i need to?

  6. #6
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    no one knows?

  7. #7
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    I don't know what this means
    that's like: i come to site, log in, and see this litebox. then i close it and log off. And now, i log in again, but litebox doesn't appear.
    Do you mean you already made it and are having that error, you want it to work like that or something else?

    Can't answer this without that, when does it need to be
    how i can manage it to be shown only then when i need to?

    If someone doesn't respond with an answer try and explain with more detail.

  8. #8
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    all what I need is to show users litebox when they log in first time that day. if they logs in second time that day it will not be shown.
    ps. litebox script:
    PHP Code:
    <html>
        <
    head>
            <
    title>LIGHTBOX EXAMPLE</title>
            <
    style>
            .
    black_overlay{
                
    displayblock;
                
    positionabsolute;
                
    top0%;
                
    left0%;
                
    width100%;
                
    height100%;
                
    background-colorgrey;
                
    z-index:1001;
                -
    moz-opacity0.8;
                
    opacity:.80;
                
    filteralpha(opacity=80);
            }
            .
    white_content {
                
    displayblock;
                
    positionabsolute;
                
    top25%;
                
    left25%;
                
    width50%;
                
    height50%;
                
    padding16px;
                
    border2px solid green;
                
    background-colorwhite;
                
    z-index:1002;
                
    overflowauto;
            }
        </
    style>
        </
    head>
        <
    body>
            <
    div id="light" class="white_content">This is the lightbox content. <a href "javascript:void(0)" onclick "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Close</a></div>
            <
    div id="fade" class="black_overlay"></div>
        </
    body>
    </
    html

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

  10. #10
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    but it still was shown when i left your link and entered again.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •