Demo:
Cách làm :
Cho Code sau vào : overall_footer_begin
Cách làm :
Cho Code sau vào : overall_footer_begin
- Code:
<div id="loginboard" style="width: 124px; height: 128px; z-index: 100; position: absolute; left: 10px; top: -2639.9999999999964px; ">
<a href="/register" rel="nofollow"><img src="https://lh4.googleusercontent.com/-Ui7HOHJWZrg/T1jOLmYhuJI/AAAAAAAAGfI/Q_NvcsH51sw/s0/cunghoanhip.net-dangkythanhviens.png" border="0px"></a>
</div>
<!--[if IE]>
<script>
var curx=10;
var cury=0;
</script>
<![endif]-->
<script>
var curx=10;
var cury=0;
</script>
<script>
var ie45,ns6,ns4,dom;
if (navigator.appName=="Windows Internet Explorer") ie45=parseInt(navigator.appVersion)>=4;
else if (navigator.appName=="Netscape"){ ns6=parseInt(navigator.appVersion)>=5; ns4=parseInt(navigator.appVersion)<5;}
dom=ie45 || ns6;
var timershow=false;
var win_w=window.innerWidth ? window.innerWidth : document.body.offsetWidth;
var mid_w=win_w/2;
var timershow1=window.setInterval("stayMiddle()",1);
function getobj(id) {
el = document.all ? document.all[id] : dom ? document.getElementById(id) : document.layers[id];
return el;
}
function moveobj(obj,x,y) {
obj.style.left=x + "px";
obj.style.top=y+ "px";
curx=x;
cury=y;
}
function stayMiddle() {
if (document.documentElement && document.documentElement.scrollTop)
var pY = document.documentElement.scrollTop;
else if (document.body)
var pY = document.body.scrollTop;
obj = getobj('loginboard');
newy = cury+((pY-cury)/16)-165;
moveobj(obj,curx,newy);
}
// End
</script>
No Comment.