如何制作注册登录网址
一、注册页面代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
input {
width: 300px;
border-style:none;
border-bottom-style:solid;
border-bottom-width:thin;
background-color:rgba(0,0,0,0);
border-bottom-color:rgb(10, 6, 6);
text-align: center;
}
body{
width: 100%;
height: 100%;
background-image: url("img/bg1.png");
background-size: cover;
background-repeat: no-repeat;
}
#content{
width: 1100px;
height: 550px;
font-family: "宋体";
position: absolute;
text-align: center;
top: 50%;
left: 50%;
transform: translate(-45%,-50%);
}
#zc{
background-color: rgba(255, 255, 255, 50%);
width: 702px;
height: 550px;
border-width: 1px;
float: left;
}
#dl{
width: 300px;
height: 550px;
float: left;
background-image:url("img/bg2.PNG");
background-size: cover;
}
button{
width: 100px;
color: rgba(17, 16, 16, 0.8);
border-radius: 20px;
background-color: rgba(83, 66, 145, 0.5);
}
#btt{
width: 100px;
height: 30px;
border-style: double;
border-color: rgb(219, 85, 85);
border-radius: 20px;
background-color: rgba(168, 60, 152, 0);
color: rgb(24, 2, 2);
font-weight: bold;
font-size: 18px;
}
p{
color: rgba(34, 29, 29, 0.767);
}
</style>
</head>
<body>
<div id="content">
<form action="">
<div id="zc">
<h1>立即注册</h1>
<p>邮箱</p>
<input type="text" id="em"><br>
<p>用户名</p>
<input type="text" id="yhm" placeholder="不能超过5位!"><br>
<p>性别</p>
<input type="radio" name="sex" value="男" style="width: 80px;">男
<input type="radio" name="sex" value="女" style="width: 80px;">女<br><br>
<p>头像</p>
<input type="file" style="opacity: 0.5;"><br>
<p>密码</p>
<input type="password" id="mm" placeholder="密码长度至少为6位,且为数字和字母的组合"><br>
<p>确认密码</p>
<input type="password" id="qrmm" placeholder="再次密码须一致"><br><br>
<button id="btnzc">注册</button>
</div>
</form>
<div id="dl">
<br><br><br>
<h1 style="font-size: 30px;color: rgb(20, 2, 2);">已有账号?</h1>
<p style="color:rgb(20, 2, 2);font-weight: bold;">好久不见!欢迎回来!</p>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<a href="登录页面.html"><button id="btt">登 录</button></a>
</div>
</div>
<script>
var n =0;
var un = document.getElementById("em");
var pwd = document.getElementById("mm");
var yhm = document.getElementById("yhm");
var pwd2 = document.getElementById("qrmm");
var reu =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/g;
var ren=/^[a-zA-Z0-9_-]{1,5}$/g; //用户名正则
var rep =/^(?![^a-zA-Z]+$)(?!\D+$)/g;
un.οnchange=function(){
if(!reu.test(un.value)){
alert('邮箱格式错误!');
}
}
yhm.οnchange=function(){
if(!ren.test(yhm.value)){
alert("用户名格式错误!");
}
}
pwd.οnchange=function(){
if(pwd.value.length<6){
alert("密码长度至少6位!");
}
if(!rep.test(pwd.value)){
alert( '密码只能是数字和字母的组合');
}
}
pwd2.οnchange=function(){
if(pwd.value!=pwd2.value){
alert( '密码不一致!');
}
n=1;
}
document.getElementById("btnzc").οnclick=function(){
localStorage.setItem("email",un.value);
localStorage.setItem("password",pwd.value);
if(n==1) window.location.href="登录页面.html";
return false;
}
</script>
</body>
</html>
二、登录页面代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
width: 100%;
height: 100%;
background-image: url("img/bg11.PNG");
background-size:cover;
background-repeat: no-repeat;
}
input {
border-style:none;
border-bottom-style:solid;
border-bottom-width:thin;
background-color:rgba(0,0,0,0);
border-bottom-color:rgba(8, 8, 8, 0.2);
text-align: center;
}
#radio{
font-family: "宋体";
width: 500px;
height: 500px;
border-radius: 50%;
background-color: rgba(228, 198, 204, 0.637);
text-align: center;
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
margin: auto;
animation-name: move;
animation-duration: 2s;
animation-delay: 1s;
}
#fo{
position: relative;
width: 200px;
height: 300px;
top: 85px;
margin-left: 155px;
}
button{
width: 80px;
color: rgba(17, 16, 16, 0.8);
border-radius: 20px;
background-color:rgba(187, 50, 68, 0);
}
a{
color: rgba(26, 16, 16, 0.7);
}
@keyframes move{
0%{
transform:rotateY(0deg);
}
50%{
transform: rotateY(180deg);
}
100%{
transform: rotateY(0deg);
}
}
</style>
</head>
<body>
<div id="radio">
<div id="fo">
<h1 style="color: red;">立即登录</h1><br>
<p style="color: red;" >邮箱 </p>
<input type="text" id="usern"> <br>
<p style="color: red;">密码 </p>
<input type="password" id ="pwd" placeholder="长度至少为6位"><br><br>
<a href="#">忘记密码?</a><br><br>
<button id="btnd">登录</button>
<a href="注册页面.html"><button id="btnz">注册</button></a>
</div>
</div>
<script>
var yx= document.getElementById("usern");
var reu =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/g;
var rep =/^[0-9a-zA-Z]+$/g;
yx.οnchange=function(){console.log(yx.value);
if(!reu.test(yx.value)){
alert('邮箱格式错误!');
}
}
var btnd = document.getElementById("btnd");
btnd.οnclick=function(){
var pwd =document.getElementById("pwd").value;
if(pwd.length<6){
alert("密码长度至少6位!");
}
if(!rep.test(pwd)){
alert( '密码只能是数字和字母的组合');
}
var em=localStorage.getItem("email");
var pwdo=localStorage.getItem("password");
if(yx.value!=em){
alert("此邮箱不存在!");
}
else if(pwd!=pwdo){
alert("密码错误!");
}
else window.location.href='图片展示.html';
}
</script>
</body>
</html>
三、画面展示代码
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>3D旋转</title>
</head>
<style>
*{
padding: 0;
margin: 0;
}
/*背景设置为黑色*/
body{
background-image: url("img/bg1.PNG");
background-size: cover;
}
/*设置相册盒子大小、位置、外边框、旋转参数*/
#photo_box{
width: 280px;
height: 400px;
position: fixed;
left: 0;
right: 0;
top:0;
bottom: 0;
margin: 200px auto;
display: none;
transform-style: preserve-3d;/*表示所有子元素在3D空间中呈现*/
transform: rotateX(-5deg) rotateY(0deg);
animation: run 15s linear infinite;/*循环 匀速执行run动画,每30秒执行一次*/
}
/*设置图像大小、边框、圆角、位置*/
#photo_box img{
width: 300px;
height: 350px;
border: 1px solid #ccc;
border-radius: 10px;
position: absolute;
left: 0;
top: 0;
opacity: 90%;
}
#photo_box img:nth-child(1){
transform: rotateY(0deg) translateZ(500px);
}
#photo_box img:nth-child(2){
transform: rotateY(60deg) translateZ(500px);
}
#photo_box img:nth-child(3){
transform: rotateY(120deg) translateZ(500px);
}
#photo_box img:nth-child(4){
transform: rotateY(180deg) translateZ(500px);
}
#photo_box img:nth-child(5){
transform: rotateY(240deg) translateZ(500px);
}
#photo_box img:nth-child(6){
transform: rotateY(300deg) translateZ(500px);
}
#photo_box img:nth-child(7){
transform: rotateY(360deg) translateZ(500px);
}
@keyframes run {
0%{
transform: rotateX(0deg) rotateY(0deg);
}
25%{
transform: rotateX(5deg) rotateY(90deg);
}
50%{
transform: rotateX(0deg) rotateY(180deg);
}
75%{
transform: rotateX(-5deg) rotateY(270deg);
}
100%{
transform: rotateX(0deg) rotateY(360deg);
}
}
</style>
<body>
<div id="photo_box">
<img src="img/bg1.PNG">
<img src="img/bg3.jpg">
<img src="img/bg5.jpg">
<img src="img/bg4.png">
<img src="img/bg6.jpg">
<img src="img/bg7.jpg">
<img src="img/bg8.jpg">
<img src="img/bg9.jpg">
</div>
</body>
<script>
function ShowLayer(){ //延迟出现,不然会出现加载空白情况
document.getElementById("photo_box").style.display="block";
}
setTimeout("ShowLayer()",500);
</script>
<html>
四、效果展示
如何制作注册登录网址相关推荐
- Unity3D制作注册登录界面,并实现场景跳转
效果预览图片: 效果预览视频: 一.新建项目工程 1.打开Unity3D,新建一个项目,将其命名为"Login".我这里用的版本是Unity2018.4.2f1,不同版本制作过程中 ...
- html登录界面_使用数据库制作一套注册登录系统
经过了那么多个星期的学习,终于到了使用数据库的阶段了,最基本的也就是制作注册登录与数据库连接. 首先要制作一个注册窗口 先是html界面 < 效果如图: (样子怎么样不重要,重要的是测试) 这主 ...
- python注册系统_Python制作简易注册登录系统
Python制作简易注册登录系统 这篇文章主要为大家详细介绍了 Python 简易注册登录系统的制作方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下 Python 是一种面向对象.解释型计算机程 ...
- 学生网课网页设计成品 在线视频学习类网页制作 三层结构网页模板 静态HTML注册登录网页模板 学生毕业设计网页制作作品 网校类网页代制做
学生在线网课网页设计 网页知识点 网页作品介绍 网页代码展示 代码展示 登录页面部分代码展示 头部区域代码演示 小导航代码演示 网页效果预览 首页效果 表单页面 详情页面 作品地址 网页知识点 DIV ...
- html登录页面用idea,利用IDEA怎么制作一个登录注册页面
利用IDEA怎么制作一个登录注册页面 发布时间:2020-12-19 14:02:09 来源:亿速云 阅读:186 作者:Leah 利用IDEA怎么制作一个登录注册页面?很多新手对此不是很清楚,为了帮 ...
- linux游戏欢迎界面,制作Linux登录欢迎界面
1.登录提示语: 将提示语写入/etc/motd 文件 _ooOoo_ o8888888o 88" . "88 (| -_- |) O\ = /O ____/`---'\____ ...
- django完成一个可重用注册登录系统
目录 可重用注册登录系统 项目开始前的思考 搭建项目环境 设计数据库模型 数据库模型文件 设置数据库后端 注册app 生成迁移脚本并写入数据库 测试是否成功 数据库模型后台管理 路由与视图函数框架构建 ...
- Django 可重用注册登录系统
文章目录 一.可重用注册登录系统 1.项目开始前的思考 2.搭建项目环境 3.设计数据库模型 1)数据库模型文件 2)设置数据库后端 3)注册app 4)生成迁移脚本并写入数据库 5)测试是否成功 6 ...
- Python(18)——Django实战1之可重用注册登录系统(从面到点剖析)
文章目录 前言 0.项目开始前的思考 1.搭建项目环境(和上一篇文章一样) 1.1 创建Django项目 1.2 创建app 1.3 设置时区(中文显示) 1.4 数据库表生成 1.5 启动开发服务器 ...
最新文章
- mysql 执行cmd,mysql命令行中执行sql的几种方式总结
- php和python哪个工资高-python工资高还是java?
- 面试官:不会看SQL执行计划,简历也敢写精通SQL优化?
- 学习模式上的记录之统计篇四 关于excel里添加趋势线和回归统计的R square数值不一致的情况
- 普元EOS生成WebService时使用自定义实体映射属性
- python矩阵连乘_动态规划:矩阵连乘问题
- Jquery中ajax写法
- lattice diamond 安装及获取license方法
- 各类顶尖经典电影500部,先收着,待有空的时候慢慢看吧!
- 试题 算法提高 盾神与条状项链
- 普顿外汇告诉大家如何在外汇市场保持良好的心态?
- 算法设计与分析 实验三 回溯法求解地图填色问题
- 数据分析——“鲍鱼的年龄”数据集
- 在 HTML5 中捕获音频和视频
- vue中DatePicker从前台到后台日期偶尔差一天
- 传音控股以科技立品牌,2021一季度净利大增125.93%
- 计算机等级考试怎么领取证书 领取方式
- DICOM医学图像格式转换的C++实现 DIOCM转 BMP、读取DICOM图像(转载)
- stom实时单词统计
- 大国权力竞争如何引发了技术革命