quinta-feira, 2 de junho de 2016

HTML 5 - POP UP



<!DOCTYPE html>
<head>
    <title>Creating a modal window with HTML5 &amp; CSS3</title>
   
    <style>
     #openModal {
    position:relative;
    z-index:1;
   
    }
    #popup
{
    position:absolute;
    z-index:2;
    left:300px;
    top:35px;
    display:none;
    width:500px;
   
        padding: 5px 20px 13px 20px;
        border-radius: 10px;
        background: -moz-linear-gradient(#fff, #999);
        background: -webkit-linear-gradient(#fff, #999);
        background: -o-linear-gradient(#fff, #999);
}


    .close {
        background: #606061;
        color: #FFFFFF;
        line-height: 25px;
        position: absolute;
        right: -12px;
        text-align: center;
        top: -10px;
        width: 24px;
        text-decoration: none;
        font-weight: bold;
        -webkit-border-radius: 12px;
        -moz-border-radius: 12px;
        border-radius: 12px;
        -moz-box-shadow: 1px 1px 3px #000;
        -webkit-box-shadow: 1px 1px 3px #000;
        box-shadow: 1px 1px 3px #000;
    }

    .close:hover { background: #00d9ff; }
  
    </style>
   
</head>

<body>

<div id="popup">
        <div>
        <a href="#close" onclick="hide('closer'); hide('popup')" id="closer" title="Close" class="close">X</a>
        <h2>Modal Box</h2>
        <p>This is a sample modal box that can be created using the powers of CSS3.</p>
        <p>You could do a lot of things here like have a pop-up ad that shows when your website loads, or create a login/register form for users.</p>
    </div>
</div>   

<div id="openModal" class="modalDialog">
   
        <h2>TESTE</h2>
        <p>POP UP CSS3.</p>
        <p>You could do a lot of things here like have a pop-up ad that shows when your website loads, or create a login/register form for users.</p>

</div>


<script>
    document.getElementById('popup').style.display = 'block';
   
    function hide(id)
    {
    document.getElementById(id).style.display = "none";
    }
   
    </script>
</body>
</html>

Nenhum comentário:

Postar um comentário

Linux bash file returns unexpected token `$'do\r''

open file in vi edit with   vi filename.sh   command; type in vi  :set ff=unix  command; save file with  :wq It will save the file with unix...