Results 1 to 1 of 1
-
2nd Jul 2012, 12:09 PM #1OPProbation
function bp_thumbnail_resize modification help needed
hi friends,
today i use "function bp_thumbnail_resize" java script for my new web movie blog, http://alttheater.blogspot.com. But after using, i face some problems.
My image are not adjust according to the java script. It take a screenshot based on post image but i need the homepage image should be adjust according to my prefer image size, like:
width:218px;
height:215px;
Currently i use following codes:
.thumbs{
width:218px;
height:215px;
position:relative;
line-height:1.6em;
margin:0;
overflow:hidden;
}
.thumbs img{
position:absolute;
top:0;
left:0;
border:0;
margin-top:0px;
}
.thumbs a{
display:block;
position:relative;
overflow:hidden;
height:215px;
width:218px;
color:#555;
}
.thumbs a:hover{
text-decoration:none;
}
.summary{
padding-bottom:15px;
margin:10px 10px 0;
font-familyosis,Verdana,Arial;
font-size:12px;
}
and scripts are:
<script type='text/javascript'>
$(function() {$('.thumbs').hover(function(){$(this).find('img') .animate({left:'220px'},{queue:false,duration:500} );}, function(){$(this).find('img').animate({left:'0px' },{queue:false,duration:500});});})
</script>
and
<script type='text/javascript'>
//<![CDATA[
function bp_thumbnail_resize(image_url,post_title)
{
var image_size=218;
var show_default_thumbnail=true;
var default_thumbnail="http://2.bp.blogspot.com/-erTXCq61ULM/TmHYAQBZ0GI/AAAAAAAACCs/6cBX54Dn6Gs/s72-c/default.png";
if(show_default_thumbnail == true && image_url == "") image_url= default_thumbnail;
image_tag='<img src="'+image_url.replace('/s72-c/','/s'+image_size+'-c/')+'" alt="'+post_title+'"/>';
if(image_url!="") return image_tag; else return "";
}
//]]>
</script>
Can anyone help me to adjust the home page images which take from post img url.
You may visit my blog here: http://alttheater.blogspot.com
here you can notice that the images are not shown at full format. Please help me to edit this and suggest me how can i make the full images which will automatic adjust at the homepage.
Best Regardsmdtareq Reviewed by mdtareq on . function bp_thumbnail_resize modification help needed hi friends, today i use "function bp_thumbnail_resize" java script for my new web movie blog, http://alttheater.blogspot.com. But after using, i face some problems. My image are not adjust according to the java script. It take a screenshot based on post image but i need the homepage image should be adjust according to my prefer image size, like: width:218px; height:215px; Currently i use following codes: Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Little help needed in WP Modification
By Froomple in forum WordpressReplies: 11Last Post: 9th Jun 2012, 02:55 PM -
Urgent help needed in Vbulletin 4 search function
By intensecool in forum Webmaster ResourcesReplies: 0Last Post: 1st Mar 2011, 04:27 AM -
Rapidleech modification
By snub in forum Web Development AreaReplies: 3Last Post: 12th Oct 2010, 09:05 PM -
Thank Modification?
By Ronald in forum Feedback and SuggestionsReplies: 10Last Post: 8th Sep 2010, 02:14 AM -
What the name of this modification?
By Snell in forum phpBBReplies: 2Last Post: 28th May 2010, 12:40 PM
themaCreator - create posts from...
Version 3.23 released. Open older version (or...