Recent posts update fast load

This is new version of Recent posts 1. Login to blogger, then choose "Layout --> Edit HTML" . Don't forget to backup your t...


This is new version of Recent posts

1. Login to blogger, then choose "Layout --> Edit HTML". Don't forget to backup your template first.
2. Check the "Expand Widget Templates" box.

3. Find below code




 function removeHtmlTag(strx,chop){
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);
}
}
s = s.join("");
s = s.substring(0,chop-1);
return s;

}


And replace by this code
function removeHtmlTag(s,max){
s=s.replace(/<br.*?>/ig, ' ');
return s.replace(/<.*?>/ig, '').split(/\s+/).slice(0,max-1).join(' ')
}


Now you have to change the value of sumaryPost
Example: summaryPost = 30;
Fandung[dot]com

Hot in Week

Popular

Archive

item