-
Hướng dẫn tạo quảng cáo adsense cố định hai bên web blogspot.
Bước 1: Vô adsense tạo và lấy mã banner dọc 160 x 600 hoặc nhỏ hơn vì to quá sẽ không đủ chỗ
Bước 2: Thêm CSS
<style>
.float-ck {
position: fixed;
top: 75px;
z-index: 9000
}
* html .float-ck {
position: absolute;
bottom: auto;
top: expression(eval (document.documentElement.scrollTop+document.docum entElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop, 10)||0)-(parseInt(this.currentStyle.marginBottom, 10)||0)));
}
</style>
Chỉnh css phần tô màu đỏ cho phù hợp
Bước 3: Vô bố cục add tiện ích HTML dán code sau
Banner trái:
<div class="float-ck" style="left: 0px">
<div id="hide_float_right"></div>
<div id="float_content_right">
Đặt Mã Adsense của bạn ở đây
</div>
</div>
Banner phải:
<div class="float-ck" style="right: 0px">
<div id="hide_float_right"></div>
<div id="float_content_right">
Đặt Mã Adsense của bạn ở đây
</div>
</div>
Sau đó lưu lại