Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    mrx
    mrx is offline
    New Coder
    Join Date
    Oct 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    auto popup first time visit

    im doing a tooltip layer popup with css
    how do i make this automaticly popup only for the first time visit the page

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style>
    a.info{
        position:relative; /*this is the key*/
        z-index:24; background-color:#ccc;
        color:#000;
        text-decoration:none}
    
    a.info:hover{z-index:25; background-color:#ff0}
    
    a.info span{display: none}
    
    a.info:hover span{ /*the span will display just on :hover state*/
        display:block;
        position:absolute;
        top:2em; left:2em; width:15em;
        border:1px solid #0cf;
        background-color:#cff; color:#000;
        text-align: center}
    </style>
    </head>
    
    <body>
    <a href="#" class="info">hover tooltip text<span>testing text  text</span></a>
    </body>
    </html>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    And what exactly have you tried? Anything or were you just expecting someone to give you code without you trying?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    mrx
    mrx is offline
    New Coder
    Join Date
    Oct 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well i dont now how or what to begin with


  •  

    Posting Permissions

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