[分享] 精仿DiscuzX2右上角独立登入框效果(集成验证码问答)
[分享] 精仿DiscuzX2右上角独立登入框效果(集成验证码问答)
第三方
- 代碼:
<style type="text/css">#umenu .loginform input.txt {margin:4px 3px 3px 5px;height:17px; line-height:17px; padding:2px 4px;border-top:#848484 1px solid;border-left:#848484 1px solid;border-right:#e0e0e0 1px solid;border-bottom:#e0e0e0 1px solid; width:120px;}
#umenu .checkbox {vertical-align:middle; margin:0px 0px 1px 0px;}
#umenu .qqlogin {border-right:1px solid #ddd; margin-right:10px; padding-right:5px;text-align:center;margin-top:5px;}
#umenu {z-index:888;}
#umenu #yzbox { width:142px;position:absolute; border:1px solid #ddd; background:#fff; top:60px; right:100px; padding:5px;z-index:1000;}
#umenu #questionid { margin:-1px; }
#umenu .selecttype { width:140px;border:1px solid #ddd; overflow:hidden;margin:5px 0;height:auto!important;}
#umenu #yzbox input.txt {width:132px;margin:0px;}
#umenu .closea { color:#333; font-size:12px; float:right;display:inline-block;width:16px;}
#umenu .submit {width:70px; border:#235994 1px solid;color:#fff;background:#06c;height:23px;}
#umenu .zd {margin-right:7px;}
#umenu .loginform label {display:inline!important;}
#umenu .loginform {width:auto!important;height:auto!important;border-right:0px!important;padding:0px!important;margin:0px!important;}
.lzc a {display:inline-block;border:#e6e6e6 1px solid;background:#eee;font-weight:700;margin:2px 5px 0 10px!important;height:21px;line-height:21px;padding:0px 10px;}
.yzwd {width:100px;display:inline-block;}
</style>
<script type="text/javascript">
function $(id){return document.getElementById(id);}
function Sdiv(Aid) {if($(Aid) !=null){$(Aid).style.display = 'block'}}
function Cdiv(Bid) {if($(Bid) !=null){$(Bid).style.display = 'none'}}
</script>
<div id="tb_1" style="display:none">
<div class="qqlogin left">
<p><a href="/connect.php?mod=login&op=init&referer=index.php"><img src="http://images.5d6d.net/dz7/plugins/qqconnect/qq_login.gif" class="vm" alt="QQ登錄" /></a></p>
<p class="hm xg1" style="padding-top: 2px;">只需一步,快速開始</p>
</div>
<div class="fastlogin left">
<form method="post" name="login" id="loginform" class="gateform" action="/logging.php?action=login&loginsubmit=yes">
<input type="hidden" name="formhash" value="a45a9ada" />
<input type="hidden" name="referer" value="index.php" />
<div class="loginform nolabelform">
<input type="hidden" name="loginfield" value="username" />
<p>帐户<input type="text" name="username" autocomplete="off" size="36" class="txt" tabindex="1" value="" /><span class="zd"><input type="checkbox" class="checkbox" name="cookietime" id="cookietime" tabindex="1" value="2592000" /> <label for="cookietime">自动登录</label></span><a href="javascript:;" onclick="display('loginform');pagescroll.right()" title="找回密碼" class="fpw">找回密碼</a></p>
<p>密码<input type="password" id="password3" name="password" onfocus="javascript:Sdiv('yzbox')" size="36" class="txt" tabindex="1" /><span><button class="submit" type="submit" name="loginsubmit" value="true" tabindex="1">登錄</button></span><span class="lzc"><a href="registerbbs.php" onclick="floatwin('close_login');floatwin('open_register', this.href, 600, 400, '600,0');return false;" title="注册帐號">立刻注册</a></span></p>
<div id="yzbox" style="display:none;">
<p class="s_clear"><span class="left yzwd">验证问答</span><a href="javascript:viod(0);" title="关闭" class="closea" onclick="javascript:Cdiv('yzbox')">X</a></p>
<div class="selecttype">
<select id="questionid" name="questionid">
<option value="0">安全提問</option>
<option value="1">母親的名字</option>
<option value="2">爺爺的名字</option>
<option value="3">父親出生的城市</option>
<option value="4">您其中一位老師的名字</option>
<option value="5">您個人計算機的型號</option>
<option value="6">您最喜歡的餐館名稱</option>
<option value="7">駕駛執照的最后四位數字</option>
</select>
</div>
<p><input type="text" name="answer" id="answer" autocomplete="off" size="36" class="txt" tabindex="1" /></p>
</div>
</div>
</form></div>
</div><script type="text/javascript">
if ($("umenu") != null ){
if(discuz_uid == 0){$("umenu").innerHTML = $('tb_1').innerHTML;$('tb_1').style.display='none'};if (discuz_uid == 0 && $("logging") != null){$("umenu").innerHTML =""}}</script>
這個論壇的權限:
您 無法 在這個版面回復文章