Chèn 2 đoan code này vào overall_header
Cái Cuối Nè: Like phát :haha:
- Code:
<!-- BEGIN switch_user_logged_out -->
<style type="text/css">
#gb{position:fixed;top:50px;z-index:+1000;}* html #gb{position:relative;}.gbtab{height:150px;width:30px;float:right;cursor:pointer;background:url('http://i46.servimg.com/u/f46/17/46/58/91/111012.png') no-repeat;}.gbcontent{float:right;border:2px solid #990000;background:#F5F5F5;padding:0px;}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 30-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 10 ? 5 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
gb.style.left = x.toString() + "px";
if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 10);}
}
</script>
<div style="left: -194px;" id="gb">
<div class="gbtab" onclick="showHideGB()">
</div>
<div class="gbcontent">
<table border="0" width="190px">
<!--DWLayoutTable-->
<tr><td align="left"><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class="catLeft" height="25">
<span class="genmed module-title">{L_LOGIN}</span>
</td>
</tr>
<tr>
<td class="row1">
<form action="{S_LOGIN_ACTION}" method="post">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td align="left" width="55%"><span class="gen">{L_USERNAME}:</span></td>
<td style="position:relative;padding-right:5px;"><input type="text" name="username" value="{USERNAME}" size="20" maxlength="40" style="width:100%;" /></td>
</tr>
<tr>
<td align="left"><span class="gen">{L_PASSWORD}:</span></td>
<td style="position:relative;padding-right:5px;"><input type="password" name="password" size="20" maxlength="32" style="width:100%;"></td>
</tr>
<tr align="center">
<td colspan="2"><span class="gen">Ghi nhớ đăng nhập: <input type="checkbox" name="autologin" {AUTOLOGIN_CHECKED}></span></td>
</tr>
<tr align="center">
<td colspan="2"><input class="mainoption" type="submit" name="login" value="{L_LOGIN}"></td>
</tr>
</table>
</form>
</td>
</tr>
</table></td></tr></table>
</div>
</div><!-- END switch_user_logged_out -->
- Code:
<!-- BEGIN switch_user_logged_out -->
<a id="dangky" href="/register" title="Đăng ký thành viên"></a>
<!-- END switch_user_logged_out -->
- Code:
a#dangky {background-color:#ff6633;top:33%;left:0;width:42px;height:102px;color:#FFF;cursor:pointer;text-indent:-100000px;overflow:hidden;position:fixed;z-index: 999;margin-left:-7px;background-image:url(http://www.c3zone.net/users/2611/10/63/87/album/reg10.png)}
a#dangky:hover{background-color:#82D23D;margin-left:-3px}
Cái Cuối Nè: Like phát :haha: