[本站]这里用来保存模板的
2015-11-15 00:31:52 -0500
<script src="/entry/326672/c70680aee6f95a3bc6e2ca4ec945e9ff/M5.js"></script>
<script>
//密码是123456
var pwd_md5="89e2fac6cb05bff9482a5b13f41fc379";
function verify() {
if(hex_md5(document.getElementById("pwd").value)==pwd_md5) {
document.getElementById("bg").style.display="none";
document.getElementById("noverifymsg").style.display="none";
document.getElementById("file").style.display="block";
MsgTip();
}else{
var msg=document.getElementById("msg");
msg.style.display=('block');
document.getElementById("msg").innerHTML="密码错误 或 没有填写密码";
setTimeout("Cmsg()",3000);
}
}
function OutWord(Words) {
var NewWords;
NewWords = unescape(Words);
document.write(NewWords);
}
function main() {
document.getElementById("bg").style.display="none";
document.getElementById("noverifymsg").style.display="none";
document.getElementById("file").style.display="block";
document.getElementById("MsgTip").style.display="none";
}
function Cmsg() {
msg.style.display=('none');
}
//---分割----
function MsgTip() {
var MsgTip=document.getElementById("MsgTip");
MsgTip.innerHTML="密码正确";
MsgTip.style.left="0";
setTimeout("CMT()",5000);
}
function CMT() {
document.getElementById("MsgTip").style.left="-300px";
}
</script>
<style>
#bg {
position : fixed ;
top : 30px ;
width : 100% ;
height : 100% ;
margin : 0 auto ;
max-width : 400px ;
z-index : 100 ;
box-shadow : 0 4px 9px -1px #000 inset ;
background : #fff url(/down/20130603/149902/Doraemon.png) no-repeat 100% 90% scroll ;
}
#verifybox{
padding : 5px 10px 50px 10px ;
box-shadow :rgba(0,0,0,0.2) 0 -3px 6px ;
background-color : rgba(225,225,225,.25) ;
background-image : url("/entry/325905/33efa26f35c4ad7ee85501d800d5afd4/Bow.png") ;
background-size : 9px 9px ;
background-repeat : repeat-x ;
background-position : 0 100% ;
border-radius : 15px 15px 0 0 ;
text-align : left ;
width : 250px ;
z-index : 120 ;
}
#pwd {
width : 47% ;
}
#sub {
width : 30% ;
background : deepskyblue ;
color : #fff ;
box-shadow : 3px 3px 3px #ddd ;
}
#sub:hover {
background : #205aa7 ;
box-shadow : none ;
}
#sub ,
#pwd {
padding : 5px 0.5em ;
}
.hr {
background : rgba(0,0,0,.50) ;
height : 8px ;
margin : 0 0 -4px -3px ;
border-radius : 4px ;
width : 276px ;
z-index : 110 ;
}
.form {
background : #fff ;
margin : 100px auto ;
width : 270px ;
}
/* * MSG 提示 * */
#MsgTip {
width : 300px ;
height : 30px ;
line-height : 30px ;
text-align : center ;
background : #33a3dc ;
position : fixed ;
left : -300px ;
top : 30px ;
z-index : 100 ;
transition : left 3s ;
-webkit-transition : left 3s ;
border-radius : 0 0 30px 0 ;
box-shadow : -1px 3px 3px #000 ;
color : #fff ;
}
a.Back {
background : url(/entry/325905/223adadbacdef31a37767421d89ecc60/back.png) center no-repeat ;
}
</style>
<h1 class="wo-entry-title">
{wo.entry.title}
</h1>
<div class="wo-entry-time" timestamp="{wo.entryt.creation.timestamp}">
{wo.entry.creation.datestr}
</div>
<span id="noverifymsg">
<div id="bg">
<div class="form">
<div class="hr"></div>
<div id="verifybox">
<br/>
<span style="font-size:13px;color:ime; ">
要继续访问需要输入密码才可以哦
</span>
<br/>
<input type="password" id="pwd" placeholder="请输入密码" style="border:3px solid #fff;border-radius:5px;box-shadow:3px 3px 5px #ddd inset , 3px 3px 5px #ddd ; "/>
<input type="submit" id="sub" onclick="verify()" style="border:0;font-size:1.3em;margin:0.5em;" value="确认" />
<br/>
<div id="msg" style="display:none; color:red">
</div>
<p style="color:red;text-align:center;">
想知道密码么,加QQ群[<b style="color:blue;">187490825</b>]吧!
</p>
</div>
</div>
</div>
</span>
<div id="MsgTip">
</div>
<div id="file" style="display : none">
{wo.entry.main}
<hr/>
{wo.entry.prevnext}
<hr/>
<div class="comments">{wo.entry.comments}</div>
</div>
<div class="header">
<div class="center">
<a href="javascript:history.go(-1)" class="Back L"></a>
<a href="/" class="Home R"></a>
<div class="SiteTitle">BOOK思义-前端笔记</div>
</div>
</div>
Subscribe |
Register |
Login
| N