Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Center thumbnails in Scroller block with scroll direction set to Down  (Read 6024 times)

0 Members and 1 Guest are viewing this topic.

bryanbrazil

  • Coppermine newbie
  • Offline Offline
  • Posts: 9

I've tried everything to modify pnCPG_block_scroller.htm so that images in the Scroller block are centered when scrolling vertically, but still haven't figured it out. You can see my implementation of the Scroller block on the right side of my page at www.bryanbrazil.com. Any suggestions?

Thanks!
« Last Edit: May 09, 2006, 05:09:48 am by TranzNDance »
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community

try changing the template pnCPG_sroller_block.htm into :
Code: [Select]
<!--[*  $Id: pnCPG_scroller_block.htm Exp $  *]-->
<div style="text-align:center;">
<!--[if $width eq 0]-->
<MARQUEE BEHAVIOR=scroll align=center  DIRECTION=<!--[$dir]--> HEIGHT=<!--[$height]--> SCROLLAMOUNT=<!--[$amount1]--> SCROLLDELAY=<!--[$delay]-->  TRUESPEED onmouseover=this.stop() onmouseout=this.start() >
<!--[else]-->
<MARQUEE BEHAVIOR=scroll align=center  DIRECTION=<!--[$dir]--> HEIGHT=<!--[$height]--> SCROLLAMOUNT=<!--[$amount1]--> SCROLLDELAY=<!--[$delay]--> SCROLLWIDTH=<!--[$width]--> TRUESPEED onmouseover=this.stop() onmouseout=this.start() >
<!--[/if]-->
<!--[section name="items" loop=$items]-->
<center>
<A HREF="<!--[$items[items].url]-->"><IMG SRC="<!--[$items[items].picture]-->" border=0 title="<!--[$items[items].title]-->"></A>
<!--[$content1]-->
</center>
<!--[/section]-->
</marquee>
</div>

Cas
Logged

bryanbrazil

  • Coppermine newbie
  • Offline Offline
  • Posts: 9

Problem solved! I didn't even think of using a <center> tag. I was trying to add align="center" to the <a>  and <img> tags.

Thanks Cas!
« Last Edit: May 09, 2006, 06:01:37 pm by bryanbrazil »
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 15 queries.