Thursday, November 24, 2016

Sample Mouse Over SHow Login Form



<!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>
body { font-family: tahoma; }
#loginForm  {
    display: none;
    background: #ccc;
    width: 250px;
    height: 100px;
    padding: 20px;
    color: #333;
}
#login {
    width: 290px;
    display:block;
    background:#069;
    color:#fff;
}
.label {
   cursor: pointer;
   display:block;
   padding: 5px 15px;
   font-size: 16px;
   font-weight: bold;  
}
.form-label {
    width: 70px;
    font-size: 12px;
    font-weight: bold;
}
.form-field {
    width: 180px;
}

.form-elements {
    font-size: 0px;
    margin: 10px 0 0 0;
    display: block;
}

.form-label, .form-field {
    display: inline-block;
}

.form-field input {
    padding: 3px 5px;
}

.submit-btn input {
    margin-left: 70px;
}
</style>
<script>
function showForm(){
    document.getElementById('loginForm').style.display = "block";
}

function hideForm(){
    document.getElementById('loginForm').style.display = "none";
}
</script>
</head>

<body>
<form>
<p id="login" onmouseover="showForm();" onmouseout="hideForm();">    
    <span class="label">Login Here</span>      
    <span id="loginForm">      
        <span class="form-elements">
            <span class="form-label">Name:</span>
            <span class="form-field"><input type="name" /></span>                        </span>      
        <span class="form-elements">
            <span class="form-label">Password:</span>
            <span class="form-field"><input type="password" /></span>                    </span>      
        <span class="form-elements">
            <span class="submit-btn"><input type="submit" value="Submit" /></span>    
        </span>
   
    </span>        
</p>
</form>
</body>
</html>

No comments:

Post a Comment

phprunner view custom filed status

if ($value=="Process") $str.='<img src="1.png">'; if ($value=="Receive") $str.='<i...