XEM TRỰC TIẾP BÓNG ĐÁ

VTC3 | VTV6 | SCTV Thể Thao | Bóng ĐáTV | Thể ThaoTV | Kênh K+

01:45
15/04
Arsenal Juventus vs Monaco Sunderland Xem
01:45
15/04
Aston VillaAtletico Madrid vs Real Madrid Queens Park Rangers Xem

Thứ Sáu, 4 tháng 10, 2013

[Thủ thuật Blogspot] Tự động tạo liên kết trong cho blogspot [tự động bắt link]

Tự động tạo liên kết trong cho blogspot (tự động bắt link )

Liên kết trong là liên kết giữa các bài viết trên website thông qua các từ khóa. Liên kết trong giúp tăng thời gian lưu lại trên web của người đọc, giúp cải thiện SEO on page và có thể kiếm tiền từ textlinks với adf.ly.

Để tạo khả năng tự động bắt link có thêm nhiều liên kết trong cho blogspot bạn có thể làm :

Bước 1: Bạn vào Mẫu => Chỉnh sửa HTML => Chọn Mở rộng Mẫu Tiện ích.

Bước 2 : Thêm mã sau vào trước thẻ </head>

<script type='text/javascript'>//<![CDATA[function doHighlight(a,c,f){for(var d="",b=-1,g=c.toLowerCase(),e=a.toLowerCase();0<a.length;)b=e.indexOf(g,b+1),0>b?(d+=a,a=""):a.lastIndexOf(">",b)>=a.lastIndexOf("<",b)&&e.lastIndexOf("/script>",b)>=e.lastIndexOf("<script",b)&&(d+=a.substring(0,b)+'<a title="'+a.substr(b,c.length)+'" alt="'+a.substr(b,c.length)+'" href="'+f+'">'+a.substr(b,c.length)+"</a>",a=a.substr(b+c.length),e=a.toLowerCase(),b=-1);return d} function highlightSearchTerms(a,c,f,d){searchArray=c?[a]:a.split(" ");div=document.getElementById(d);a=div.innerHTML;for(c=0;c<searchArray.length;c++)a=doHighlight(a,searchArray[c],f);div.innerHTML=a;return!0};//]]></script>

Bước 3: Tìm dòng và thay thế: <data:post.body/>

Bằng đoạn code sau :
<div expr:id='"summary" + data:post.id'><data:post.body/></div><!-- textlink --><script type='text/javascript'>highlightSearchTerms('lập trình',true,'http://adf.ly/T2dpC','summary<data:post.id/>');highlightSearchTerms('tài liệu',true,'http://adf.ly/PfKy3','summary<data:post.id/>');highlightSearchTerms('ICT',true,'http://adf.ly/PfKy3','summary<data:post.id/>');highlightSearchTerms('kiếm tiền',true,'http://adf.ly/PfJrE','summary<data:post.id/>');highlightSearchTerms('lập trình C',true,'http://adf.ly/T2dpC','summary<data:post.id/>');highlightSearchTerms('C++',true,'http://adf.ly/T2dpC ','summary<data:post.id/>');highlightSearchTerms('Java',true,'http://adf.ly/T2dpC ','summary<data:post.id/>');highlightSearchTerms('PHP',true,'http://adf.ly/T2dpC ','summary<data:post.id/>');highlightSearchTerms('C#',true,'http://adf.ly/T2dpC ','summary<data:post.id/>');highlightSearchTerms('ASP.Net',true,'http://adf.ly/T2dpC ','summary<data:post.id/>');highlightSearchTerms('Android',true,'http://adf.ly/T2dpC ','summary<data:post.id/>');highlightSearchTerms('VB',true,'http://adf.ly/T2dpC ','summary<data:post.id/>');highlightSearchTerms('CSS',true,'http://adf.ly/T2dpC ','summary<data:post.id/>');highlightSearchTerms('js',true,'http://adf.ly/T2dpC ','summary<data:post.id/>');highlightSearchTerms('Assembly',true,'http://adf.ly/T2dpC','summary<data:post.id/>');highlightSearchTerms('Programming',true,'http://adf.ly/T2dpC','summary<data:post.id/>');highlightSearchTerms('J2ME',true,'http://adf.ly/T2dpC','summary<data:post.id/>');highlightSearchTerms('J2EE',true,'http://adf.ly/T2dpC','summary<data:post.id/>');highlightSearchTerms('code',true,'http://adf.ly/T2dpC','summary<data:post.id/>');highlightSearchTerms('tool',true,' http://adf.ly/WceeG','summary<data:post.id/>');highlightSearchTerms('công cụ',true,' http://adf.ly/WceeG ','summary<data:post.id/>');</script>
Lưu ý: Mỗi dòng highlighSearchTerms là một textlink ứng với cụm từ mà bạn muốn đặt textlink.

Chúc các bạn thành công!

Thứ Năm, 3 tháng 10, 2013

[Thủ thuật blogger] Tạo banner quảng cáo chạy dọc 2 bên cho blogspot

Tạo banner chạy dọc 2 bên cho blogspot

Hình vẽ mô phỏng:

Để tạo được các banner chạy dọc các bạn thực hiện theo các bước sau:

Bước 1: Đăng nhập vào tài khoản Blogspot => Chọn BỐ CỤC => add thêm Tiện ích => Chọn tiện ích HTML/JavaScript.


Bước 2: Paste đoạn code sau vào Tiện ích HTML/Javascript

<div id="divAdRight" style="DISPLAY: none; POSITION: absolute; TOP: 0px">
<script type="text/javascript">
var ro2zoneid = '195125';
var ro2width = '120';
var ro2height = '600';
var parentpos;
if ( window.location === window.top.location )
{ parentpos=window.location + "#(referrer)[" + document.referrer + "]"; }
else { parentpos=window.location + "#(parent_location)[" + document.referrer + "]"; }
document.write('<iframe src="http://ro2.biz/ad.php?zone='+ro2zoneid+'&w='+ro2width+'&h='+ro2height+'&rf='+encodeURIComponent(parentpos)+'"');
document.write(' name="ro2bizadtag" title="ro2bizadtag" scrolling="no"');
document.write('border="0" frameborder="0" width="120" height="600"></iframe>');
</script>


</div>

<div id="divAdLeft" style="DISPLAY: none; POSITION: absolute; TOP: 0px">
<div data-app-id="176" class="div-ad123-vn-for-publisher" data-height="600" style="width:120px;"></div>

<script type="text/javascript" src="http://ad.ad1688.net/ads_block.js?adm_zoneid=176&v=1380853288"></script>


</div>
<script>
function FloatTopDiv()
{
startLX = ((document.body.clientWidth -MainContentW)/2)-LeftBannerW-LeftAdjust , startLY = TopAdjust+80;
startRX = ((document.body.clientWidth -MainContentW)/2)+MainContentW+RightAdjust , startRY = TopAdjust+80;
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
el.sP=function(x,y){this.style.left=x + 'px';this.style.top=y + 'px';};
el.x = startRX;
el.y = startRY;
return el;
}

function m2(id)
{
var e2=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
e2.sP=function(x,y){this.style.left=x + 'px';this.style.top=y + 'px';};
e2.x = startLX;
e2.y = startLY;
return e2;
}
window.stayTopLeft=function()
{
if (document.documentElement && document.documentElement.scrollTop)
var pY = document.documentElement.scrollTop;
else if (document.body)
var pY = document.body.scrollTop;
if (document.body.scrollTop > 30){startLY = 3;startRY = 3;} else {startLY = TopAdjust;startRY = TopAdjust;};
ftlObj.y += (pY+startRY-ftlObj.y)/16;
ftlObj.sP(ftlObj.x, ftlObj.y);
ftlObj2.y += (pY+startLY-ftlObj2.y)/16;
ftlObj2.sP(ftlObj2.x, ftlObj2.y);
setTimeout("stayTopLeft()", 1);
}

ftlObj = ml("divAdRight");

//stayTopLeft();
ftlObj2 = m2("divAdLeft");
stayTopLeft();
}
function ShowAdDiv()
{
var objAdDivRight = document.getElementById("divAdRight");
var objAdDivLeft = document.getElementById("divAdLeft");
if (document.body.clientWidth < 1000)
{
objAdDivRight.style.display = "none";
objAdDivLeft.style.display = "none";
}
else
{
objAdDivRight.style.display = "block";
objAdDivLeft.style.display = "block";
FloatTopDiv();
}
}
</script>
<script>
document.write("<script type='text/javascript' language='javascript'>MainContentW = 1000;LeftBannerW =125;RightBannerW = 125;LeftAdjust = 5;RightAdjust = 5;TopAdjust = 10;ShowAdDiv();window.onresize=ShowAdDiv;;<\/script>");
</script>

Lưu ý: Phần bôi xanh là code quảng cáo hoặc hình ảnh mà bạn muốn hiển thị.

>> Download Code tại đây.

Bước 3: Lưu lại => xem thử thành quả

Chúc các bạn thành công!