[ Tin nhắn mới · Thành viên · Nội quy diễn đàn · Tìm kiếm · RSS ]
  • Page 1 of 1
  • 1
Forum moderator: Admin-8x  
Forum » Trao đổi kiến thức lập trình web & chia sẻ code full sạch » Share code tổng hợp full mọi cấu hình web » Code Chèn Quảng Cáo Góc Trái Phải Đáy Trang Web
Code Chèn Quảng Cáo Góc Trái Phải Đáy Trang Web
Admin-8x
Data: Thứ ba, 19-01-2016, 5:19 PM
Offline
Bài viết: 21
Dưới đây là code chèn quảng cáo ở góc phải hoặc trái hoặc cả trái và phải của trang web, blog, forum… tóm lại là chèn được cho tất cả các mã nguồn. Nội dung quảng cáo có thể chèn được là file flash, hình ảnh hoặc code quảng cáo từ bên thứ 3.
Mình không làm demo vì nó khá đơn giản, bạn xem ảnh trên là có thể hình dung nó như thế nào rồi. 
Code quảng cáo góc phải:
Code
<script type="text/javascript"> 
function hide_float_right() { 
 var content = document.getElementById('float_content_right'); 
 var hide = document.getElementById('hide_float_right'); 
 if (content.style.display == "none") 
 {content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float_right()">Tắt quảng cáo [X]</a>'; } 
 else { content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float_right()">Xem quảng cáo...</a>'; 
 } 
 } 
</script> 
<style> 
.float-ck { position: fixed; bottom: 0px; 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))) ;} 
#float_content_right {border: 1px solid #01AEF0;} 
#hide_float_right {text-align:right; font-size: 11px;} 
#hide_float_right a {background: #01AEF0; padding: 2px 4px; color: #FFF;} 
</style> 
<div class="float-ck" style="right: 0px" > 
<div id="hide_float_right"> 
<a href="javascript:hide_float_right()">Tắt Quảng Cáo [X]</a></div> 
<div id="float_content_right"> 
<!-- Start quang cao--> 
 Chèn mã quảng cáo của bạn tại đây 
<!-- End quang cao --> 
</div> 
</div>

Code quảng cáo góc trái:
Code
<script type="text/javascript"> 
function hide_float_left() { 
 var content = document.getElementById('float_content_left'); 
 var hide = document.getElementById('hide_float_left'); 
 if (content.style.display == "none") 
 {content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float_left()">Tắt quảng cáo [X]</a>'; } 
 else { content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float_left()">Xem quảng cáo...</a>'; 
 } 
 } 
</script> 
<style> 
.float-ck { position: fixed; bottom: 0px; 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))) ;} 
#float_content_left {border: 1px solid #01AEF0;} 
#hide_float_left {text-align:left; font-size: 11px;} 
#hide_float_left a {background: #01AEF0; padding: 2px 4px; color: #FFF;} 
</style> 
<div class="float-ck" style="left: 0px" > 
 <div id="hide_float_left"> 
<a href="javascript:hide_float_left()">Tắt Quảng Cáo [X]</a></div> 
<div id="float_content_left"> 
<!-- Start quang cao-->  

 Code quang cao cua bạn  

<!-- End quang cao -->  
</div> 
</div>

Từ khoá:
Code web dep, tao code quang cao goc trai phai man hinh, xin code dang quang cao goc trai goc phai man hinh web, code dep cho web, tong hop code huu ich hay cho web, code can thiet cho lap trinh web, tuyen chon code hay cho trang tri web, code chen quang cao o 2 goc man hinh cho web.

Chúc bạn thành công:


Star-8x chinh phục mọi thử thách...!
 
Forum » Trao đổi kiến thức lập trình web & chia sẻ code full sạch » Share code tổng hợp full mọi cấu hình web » Code Chèn Quảng Cáo Góc Trái Phải Đáy Trang Web
  • Page 1 of 1
  • 1
Search:


☠ Home | ✯ Diễn đàn | ✡ Download | ☣ Tin tức | ☢ Video | ☪ Internet | ♘ Game | ✉ Hỗ trợ | ✉ Tin nhắn | Đăng ký | Đăng nhập

BOX ADMIN