slideshow center images
Permalink
Hi there,
I'm just working on a new c5 site and really excited about how it's going.
One thing i'm adding is a slide show wondered if anyone could help me with a problem –
to fit with the design of the site it is important that the slide show does not auto centre the images to the content box (in vertical or horizontal direction) – and keeps them to the top left at all times.
Is this possible? i don't know any php but guess that the section that would control this is in the view.php part of that block, and at this bit of code:
//center images
for(var i=0;i<this.imgInfos.length;i++){
if( this.imgInfos[i].imgHeight < maxHeight){
var t=((maxHeight - this.imgInfos[i].imgHeight)/2);
this.imgEls[i].css('top',t);
}
}
this.nextImg();
},
Thanks for any help
I'm just working on a new c5 site and really excited about how it's going.
One thing i'm adding is a slide show wondered if anyone could help me with a problem –
to fit with the design of the site it is important that the slide show does not auto centre the images to the content box (in vertical or horizontal direction) – and keeps them to the top left at all times.
Is this possible? i don't know any php but guess that the section that would control this is in the view.php part of that block, and at this bit of code:
//center images
for(var i=0;i<this.imgInfos.length;i++){
if( this.imgInfos[i].imgHeight < maxHeight){
var t=((maxHeight - this.imgInfos[i].imgHeight)/2);
this.imgEls[i].css('top',t);
}
}
this.nextImg();
},
Thanks for any help