The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Need help in changing text size, Javascript problem?
eyesonyouu
post Sep 8 2009, 04:19 PM
Post #1


Newbie
*

Group: Members
Posts: 18
Joined: 4-October 08
Member No.: 6,810



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 8 2009, 04:28 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



CSS probably. Try using .text as selector. Don't know what else it may effect. Maybe you need to make it more specific.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
eyesonyouu
post Sep 8 2009, 05:01 PM
Post #3


Newbie
*

Group: Members
Posts: 18
Joined: 4-October 08
Member No.: 6,810



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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 11:52 AM