Chủ Nhật, 26 tháng 1, 2014

Hướng dẫn cài Auto Read More cho blog
  • B1: Truy cập vào blogspot cần cài Auto Read More
Auto Read More cho blog - tăng tốc độ tải trang
  • B2: click vào Mẫu (Template)-> (Chỉnh sửa HTML) Edit HTML

Auto Read More cho blog - tăng tốc độ tải trang
  • B3: dùng tổ hợp CTRL +F để xuất hiện hộp search và gõ <data:post.body/> và chèn đoạn code sau vào sau <data:post.body/>
 <b:if cond='data:blog.pageType != &quot;item&quot;'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/></div>
  <script type='text/javascript'>createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);</script>
<span class='readmore' style='float:right'><a expr:href='data:post.url'>Read More &#187;</a></span></b:if></b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/></b:if>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'><data:post.body/></b:if>
 

Auto Read More cho blog - tăng tốc độ tải trang
  •  B4: tại hộp search</head> và chèn code sau vào trước </head>
<script type='text/javascript'>
posts_no_thumb_sum = 490;
posts_thumb_sum = 400;
img_thumb_height = 120;
img_thumb_width = 120;
</script>
<script type='text/javascript'>
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.length;i++){
if(s[i].indexOf(">")!=-1){
s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++;
strx = strx.substring(0,chop-1);
return strx+'...';
}
function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = posts_no_thumb_sum;
if(img.length>=1) {
imgtag = '<span class="posts-thumb" style="float:left; margin-right: 5px;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';
summ = posts_thumb_sum;
}
var summary = imgtag + '<div>' + removeHtmlTag(div.innerHTML,summ) + '</div>';
div.innerHTML = summary;
}
//]]>
</script>

Auto Read More cho blog - tăng tốc độ tải trang

Chú ý :
  •  Để thay đổi số lượng ký tự hiển thị khi không có thumbnail , sửa đổi các giá trị 490 màu xanh lam. 
  • Để thay đổi số lượng ký tự hiển thị khi một bài có một thumbnail thu nhỏ, sửa đổi các giá trị 400.
  • Nếu bạn muốn thumbnail  lớn hơn, sửa đổi các giá trị (120) trong màu đỏ.
Tuyển nhân viên phát tờ rơi , tuyen nhan viên phát to roi , nhan viên phát tờ rơi ,phát tờ rơi ở hcm , tuyển nhân viên phát tờ rơi tpchmTuyển phát tời rơi , tuyển người phát tờ rơi phat to roidich vu phat to roidich vu phat to roi o hcm , dich vu phat to roi o tphcm , phát tờ rơi dịch vụ phát tờ rơi ở tphcm , dịch vụ phát tờ rơi ở hcm  tìm việc phát tờ rơi ở tphcm , tim việc phát tở rơi , phát tờ rơi ở hcm , phat to roi o hcm , in tờ rơi , in tờ rơi giá rẻ , in tờ rơi hcm, in tờ rơi ở hcm  thiet ke brochure , thiết kế brochure , thiết kế brochure chuyên nghiệpthiet ke brochure chuyen nghiepbrochure , thiet ke brochure chuyen nghiep gia re , thiết kế brochure chuyên nghiệp giá rẻ , thiết kế brochure giá rẻthiet ke brochure gia re , cach thiet ke brochurecách thiết kế brochure, bang bao gia thiet ke brochure , bao gia thiet ke brochure bảng báo giá thiết kế brochurebao gia thiet ke brochure , design brochure brochure designphần mềm thiết kế brochure , phan mem thiet ke brochurephan mem thiet ke brochure chuyen nghiepphần mềm thiết kế brochure chuyên nghiệpin brochure giá rẻin brochure gia rein brochure  google plus là gìgoogle plus la gi, google + la gi , google + là gì , tang luu luong truy website, tang luu luong truy captăng lưu lượng truy cậptăng lưu lượng truy cập website trung tâm gia sư tphcm , trung tam gia su , trung tâm gia sưgia sư tphcmtrung tâm gia sư ở tphcmgia sư tại tphcm

    26 Jan 2014

    0 nhận xét:

    Đăng nhận xét

    :) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
    Click to see the code!
    To insert emoticon you must added at least one space before the code.