<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>www.moobnn.com</title>
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/modernizr.custom.63321.js"></script>
<!--[if lte IE 7]><style>.main{display:none;} .support-note .note-ie{display:block;}</style>
<![endif]-->
<style>
body {
background: #e1c192 url(images/wood_pattern.jpg);
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>www.moobnn.com</h1>
<h2>www.moobnn.com</h2>
<nav class="codrops-demos">
<a href="index.html">Demo 1</a>
<a class="current-demo" href="index2.html">Demo 2</a>
<a href="index3.html">Demo 3</a>
<a href="index4.html">Demo 4</a>
<a href="index5.html">Demo 5</a>
</nav>
<div class="support-note">
<span class="note-ie">Sorry, only modern browsers.</span>
</div>
</header>
<section class="main">
<form class="form-2">
<h1><span class="log-in">Log in</span> or <span class="sign-up">sign up</span></h1>
<p class="float">
<label for="login"><i class="icon-user"></i>Username</label>
<input type="text" name="login" placeholder="Username or email">
</p>
<p class="float">
<label for="password"><i class="icon-lock"></i>Password</label>
<input type="password" name="password" placeholder="Password" class="showpassword">
</p>
<p class="clearfix">
<a href="#" class="log-twitter">Log in with Twitter</a>
<input type="submit" name="submit" value="Log in">
</p>
</form></section>
</div>
<!-- jQuery if needed -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$(".showpassword").each(function(index,input) {
var $input = $(input);
$("<p class='opt'/>").append(
$("<input type='checkbox' class='showpasswordcheckbox' id='showPassword' />").click(function() {
var change = $(this).is(":checked") ? "text" : "password";
var rep = $("<input placeholder='Password' type='" + change + "' />")
.attr("id", $input.attr("id"))
.attr("name", $input.attr("name"))
.attr('class', $input.attr('class'))
.val($input.val())
.insertBefore($input);
$input.remove();
$input = rep;
})
).append($("<label for='showPassword'/>").text("Show password")).insertAfter($input.parent());
});
$('#showPassword').click(function(){
if($("#showPassword").is(":checked")) {
$('.icon-lock').addClass('icon-unlock');
$('.icon-unlock').removeClass('icon-lock');
} else {
$('.icon-unlock').addClass('icon-lock');
$('.icon-lock').removeClass('icon-unlock');
}
});
});
</script>
<center><p><br>适用浏览器:FireFox、Chrome、Safari、Opera、傲游、搜狗. 不支持IE浏览器。</p><br>
厚朴网络<a href="http://www.moobnn.com/" target="_blank">厚朴网络</a></center>
</body>
</html>
基于jquery登录框特效.zip
版权申诉
150 浏览量
2022-11-25
10:22:43
上传
评论
收藏 496KB ZIP 举报
芝麻粒儿
- 粉丝: 6w+
- 资源: 2万+
最新资源
- PM514BA-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- electromagnetic wave(1).m
- 3D Slicer 5.6.2 win amd64
- 2024年2月下载的windows10镜像中提取的Winre
- PM513BA-VB一款P-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 住宅IP:解锁全球网络内容与强化在线隐私的钥匙
- Windographer 5.2.14
- PJ4407-VB一款P-Channel沟道SOP8的MOSFET晶体管参数介绍与应用说明
- 【CSAPP实验8】动态内存分配器
- 单相并网逆变器处理器在环PIL测试
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈