Text on the thumnails, Text On The Thumnails |
Text on the thumnails, Text On The Thumnails |
patel |
Mar 22 2012, 01:26 PM
Post
#1
|
Group: Members Posts: 6 Joined: 22-March 12 Member No.: 16,767 |
i want to show a line of text on my thumnails
my url is http://pateltemplates.blogspot.com so the download in my description but how to show i don't know here is the code from blogger CODE <script type='text/javascript'>var thumbnail_mode = "no-float"; summary_noimg = 0; summary_img = 0; img_thumb_height = 185; img_thumb_width = 280; </script> <script type='text/javascript'> //<![CDATA[ function createSummaryAndThumb(pID){ var div = document.getElementById(pID); var imgtag = ""; var img = div.getElementsByTagName("img"); if(img.length<=0) { imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"><img src="http://farm3.static.flickr.com/2676/4053275587_d21ffaab15.jpg" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>'; 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; } //]]> </script> and in the post showing at home page it shows like that i think this shows the post CODE <div class='post-body entry-content'> <b:if cond='data:blog.pageType != "item"'> <a expr:href='data:post.url'><div expr:id='"summary" + data:post.id'><data:post.body/></div></a><script type='text/javascript'>createSummaryAndThumb("summary<data:post.id/>");</script> </b:if> <b:if cond='data:blog.pageType == "item"'><data:post.body/></b:if> <div style='clear: both;'/> <!-- clear for photos floats --> </div> and the template name is emperors for blogger please help i tired in search of that |
Lo-Fi Version | Time is now: 24th April 2024 - 09:07 PM |