Code quảng cáo từ dưới trồi lên ở góc phải (Blogspot)
Hôm nay mình sẽ giới thiệu với các bạn đoạn code tạo khung quảng cáo nổi lên ở góc phải màn hình của bạn.
Bạn vào bảng điều kiển của Blogspot. Chọn bố cục thêm tiện ích HTML/Javascrip. Sau đó dán đoạn code sau vào.
<a target="_blank" href="http://demkhongngu.com/" rel="dofollow"> <img style="margin:3px 1px 1px 3px;" border="0" width="260" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi89t4OVJvFdZGvp7jRMUmpr4vwIIshnjwlzwmXkMCBjhkNfvFcXKBMggA6cedzV2u2jUBeAP8cfLwSITfbtzMm3rmroEV7Fg6ypvWmzVlHtLz-zZE0sLch15bTI6Fmk8xM7gQSkloXt9w/s1600/demkhongngu.jpg" height="115" title="Diễn đàn Kết bạn"/></a>
<!-- code ads -->
</div>
</div></div></div>
<script>
pf204652bottomLayer = document.getElementById('fl813691');
var pf204652IntervalId = 0;
var pf204652maxHeight = 148;//Chieu cao khung quang cao
var pf204652minHeight = 20;
var pf204652curHeight = 0;
function pf204652show( ){
pf204652curHeight += 2;
if (pf204652curHeight > pf204652maxHeight){
clearInterval ( pf204652IntervalId );
}
pf204652bottomLayer.style.height = pf204652curHeight+'px';
}
function pf204652hide( ){
pf204652curHeight -= 3;
if (pf204652curHeight < pf204652minHeight){
clearInterval ( pf204652IntervalId );
}
pf204652bottomLayer.style.height = pf204652curHeight+'px';
}
pf204652IntervalId = setInterval ( 'pf204652show()', 5 );
function pf204652clickhide(){
document.getElementById('pf204652hide').style.display='none';
document.getElementById('pf204652show').style.display='inline';
pf204652IntervalId = setInterval ( 'pf204652hide()', 5 );
}
function pf204652clickshow(){
document.getElementById('pf204652hide').style.display='inline';
document.getElementById('pf204652show').style.display='none';
pf204652IntervalId = setInterval ( 'pf204652show()', 5 );
}
function pf204652clickclose(){
document.body.style.marginBottom = '0px';
pf204652bottomLayer.style.display = 'none';
}
</script>
Bạn vào bảng điều kiển của Blogspot. Chọn bố cục thêm tiện ích HTML/Javascrip. Sau đó dán đoạn code sau vào.
<a target="_blank" href="http://demkhongngu.com/" rel="dofollow"> <img style="margin:3px 1px 1px 3px;" border="0" width="260" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi89t4OVJvFdZGvp7jRMUmpr4vwIIshnjwlzwmXkMCBjhkNfvFcXKBMggA6cedzV2u2jUBeAP8cfLwSITfbtzMm3rmroEV7Fg6ypvWmzVlHtLz-zZE0sLch15bTI6Fmk8xM7gQSkloXt9w/s1600/demkhongngu.jpg" height="115" title="Diễn đàn Kết bạn"/></a>
<!-- code ads -->
</div>
</div></div></div>
<script>
pf204652bottomLayer = document.getElementById('fl813691');
var pf204652IntervalId = 0;
var pf204652maxHeight = 148;//Chieu cao khung quang cao
var pf204652minHeight = 20;
var pf204652curHeight = 0;
function pf204652show( ){
pf204652curHeight += 2;
if (pf204652curHeight > pf204652maxHeight){
clearInterval ( pf204652IntervalId );
}
pf204652bottomLayer.style.height = pf204652curHeight+'px';
}
function pf204652hide( ){
pf204652curHeight -= 3;
if (pf204652curHeight < pf204652minHeight){
clearInterval ( pf204652IntervalId );
}
pf204652bottomLayer.style.height = pf204652curHeight+'px';
}
pf204652IntervalId = setInterval ( 'pf204652show()', 5 );
function pf204652clickhide(){
document.getElementById('pf204652hide').style.display='none';
document.getElementById('pf204652show').style.display='inline';
pf204652IntervalId = setInterval ( 'pf204652hide()', 5 );
}
function pf204652clickshow(){
document.getElementById('pf204652hide').style.display='inline';
document.getElementById('pf204652show').style.display='none';
pf204652IntervalId = setInterval ( 'pf204652show()', 5 );
}
function pf204652clickclose(){
document.body.style.marginBottom = '0px';
pf204652bottomLayer.style.display = 'none';
}
</script>
0 comments: