页面粒子效果-登录页面

Particleground是一个JavaScript插件,用于时髦的后台粒子系统。包括鼠标在桌面设备和移动设备上的陀螺仪控制的可选视差效果。在支持HTML5画布的浏览器中工作。

相关链接

  • Github地址:https://github.com/jnicol/particleground

  • 官网示例地址:http://jnicol.github.io/particleground/

    <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta charset="UTF-8"> <meta name="keywords" content="进销存|库房管理|WMS|企业管理软件|贸易通|批发库存管理|利润管理系统|发票管理系统|门店管理系统|商铺管理系统" /> <meta name="description" content="进销存|库房管理|WMS|企业管理软件|贸易通|批发库存管理|利润管理系统|发票管理系统|门店管理系统|商铺管理系统" /> <title>进销存管理系统</title> <meta name="author" content="进销存开发团队" /> <style> canvas { z-index: 1; position:absolute; width : 100%; height :100%; } </style> <style>

    body {
    background: url(static/images/login/bg.jpg) repeat-x top center;
    background-color: #084f8d9c;
    }

    .login_box {
    margin: 0 auto;
    width: 1024px;
    height: 725px;
    background: url(static/images/login/login_bg.png) no-repeat;
    }

    .login_text {
    font-size: 13px;
    color: #075398;
    width: 270px;
    padding: 320px 0px 0px 470px;
    }

    .login_row {
    height: 33px;
    vertical-align: middle;
    }

    .login_submit {
    padding-left: 50px;
    }

    .text_bg {
    background: url(static/images/login/input_bg.jpg) no-repeat;
    width: 182px;
    height: 27px;
    border: none;
    margin-bottom: -4px;
    }

    .code_bg {
    width: 90px;
    border-right: 1px solid #88b0dc;
    }
    -->
    </style>

    <script src="./static/js/jquery.js"></script> <script src="./static/js/verifyCode.js"></script> <script src="./static/js/Particleground.js"></script> <script> $(document).ready(function() { //粒子背景特效 $('body').particleground({ dotColor : '#5cbdaa', lineColor : '#5cbdaa' });
    复制代码
      	$("#loginBtn").click(function() {
      		$.post("./user/login", {
      			userName : $("#userName").val(),
      			password : $("#password").val(),
      			imageCode : $("#imageCode").val()
      		}, function(result) {
      			console.log(result);
      			if (result.success) {
      				window.location.href = "main.html";
      			} else {
      				alert(result.errorInfo);
      			}
      		});
      	});
      });
    </script> </head> <body>
    复制代码
      	<dl class="login_text;" style="z-index: 9999;position: relative;top:31%;left:44%;">
    
      		<dd class="login_row" style="margin-top: -100px; margin-left: -150px; font-size: 30px; color: #ffffff;">
      			<p>进销存管理系统</p>
      		</dd>
    
      		<dd class="login_row">
      			 
      		</dd>
    
      		<dd class="login_row"  style="color: #ff0000;">
      			 演示版:帐号和密码都是admin 
      		</dd>
    
      		<dd class="login_row">
      			 
      				帐号:<input type="text" id="userName" placeholder="账号"
      					class="text_bg" />
      			 
      		</dd>
    
      		<dd class="login_row">
      			 
      				密码:<input type="password" id="password" placeholder="密码"
      					class="text_bg" />
      			 
      		</dd>
      		<dd class="login_row">
      			 
      				验证码:<input type="text" id="imageCode" name="imageCode"
      					style="margin-bottom: -5px;" placeholder="验证码" maxlength="4"
      					class="text_bg code_bg"> <img id="imgObj" title="看不清,换一张"
      					src="./drawImage" onclick="changeImg()"
      					style="margin-bottom: -5px;" />
      			 
      		</dd>
      		<dd class="login_row" >
      			<input type="image" id="loginBtn" value="立即登陆"
      				src="./static/images/login/submit_btn.jpg" /> <input type="image"
      				id="retsetBtn" value="取消" src="./static/images/login/reset_btn.jpg" />
      		</dd>
    
      	</dl>
    
      
    
      </div>
    </body> </html>
相关推荐
海上彼尚3 天前
SVG矢量图形快速入门
前端·html5
是上好佳佳佳呀4 天前
【前端(六)】HTML5 新特性笔记总结
前端·笔记·html5
kyriewen114 天前
每日知识点:this 指向之谜——是谁在 call 我?
前端·javascript·vue.js·前端框架·ecmascript·jquery·html5
一定要AK4 天前
HTML5 入门到精通全章节学习笔记
笔记·学习·html5
深邃-4 天前
【C语言】-数据在内存中的存储(2):浮点数在内存中的存储
c语言·开发语言·数据结构·c++·算法·html5
我命由我123457 天前
Vue3 开发中,字符串中的 <br\> 标签被直接当作文本显示出来了,而不是被解析为 HTML 换行标签
开发语言·前端·javascript·vue.js·html·ecmascript·html5
天下无贼!8 天前
【功能实现】基于Vue3+TS实现大文件分片上传
开发语言·javascript·node.js·vue·html5
kyriewen119 天前
你点的“刷新”是假刷新?前端路由的瞒天过海术
开发语言·前端·javascript·ecmascript·html5
我命由我1234510 天前
浏览器的 JS 模块化支持观察记录
开发语言·前端·javascript·css·html·ecmascript·html5
酉鬼女又兒11 天前
零基础快速入门前端ES6 核心特性详解与蓝桥杯 Web 考点实践(可用于备赛蓝桥杯Web应用开发)
开发语言·前端·职场和发展·蓝桥杯·es6·css3·html5