Need help in changing text size, Javascript problem? |
Need help in changing text size, Javascript problem? |
eyesonyouu |
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 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 So can anyone please have a look at the code and help me. Regards |
pandy |
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.
|
eyesonyouu |
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! Did you mean that I should change the extension of file from .js to .txt and then try? |
Lo-Fi Version | Time is now: 26th April 2024 - 11:52 AM |