Help - Search - Members - Calendar
Full Version: Need help in changing text size
HTMLHelp Forums > Programming > Client-side Scripting
eyesonyouu
Hello

I am looking for some help for my blog-

CODE
www.vu-point.blogspot.com



IPB Image



I wish to increase the font size of post summaries i.e. the text highlighted in black box.



This is the javascript code which is used to summarize posts and create thumbnail




QUOTE
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 = summary_noimg;
if(img.length>=1) {
imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';
summ = summary_img;
}

var summary = imgtag + '<div>' + removeHtmlTag(div.innerHTML,summ) + '</div>';
div.innerHTML = summary;
}




Now I am not sure whether I have to change something in the Javascript or something in the XML code to increase font size sad.gif


So can anyone please have a look at the code and help me.



Regards
pandy
CSS probably. Try using .text as selector. Don't know what else it may effect. Maybe you need to make it more specific.
eyesonyouu
QUOTE
CSS probably. Try using .text as selector. Don't know what else it may effect. Maybe you need to make it more specific.




hmm...I am a layman when it comes to coding! sad.gif Did you mean that I should change the extension of file from .js to .txt and then try?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.