Lưu ý: Chỉ chạy trên IE
- Code:
<script Language=JavaScript>
var xV1 = 0;
var xV2 = 0;
function stayHome(){
nV = document.body.scrollTop;
document.getElementById('isFloat1').style.top = xV1+nV;
document.getElementById('isFloat2').style.top = xV2+nV;
}
function init(){
xV1 = document.getElementById('isFloat1').offsetTop;
xV2 = document.getElementById('isFloat2').offsetTop;
}
window.onload=init;
window.onscroll=stayHome;
</script>
<DIV id='isFloat1' style='position:absolute;top:0px;left:0%'><a href='http://vanchan.forum.st' target=_blank><img src='http://www.dayhocintel.org/diendan/attachment.php?attachmentid=11676&stc=1&d=1200796149' border=0></a></DIV>
<DIV id='isFloat2' style='position:absolute;top:0px;right:0%'><a href='http://vanchan.forum.st' target=_blank><img src='http://www.tuoitre.com.vn/Tianyon/Cache/Image/868/17868.jpg' border=0></a></DIV>
No Comment.