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: anchored thumbstrip scroller  (Read 4171 times)

0 Members and 1 Guest are viewing this topic.

eke

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
anchored thumbstrip scroller
« on: November 30, 2003, 12:53:57 pm »

I am currently trying to mod the thumbstrip function to include a named anchor for the presently displayed image. What for?

In theme.php I changed the thumbstrip code to this:
Code: [Select]

        <div style="width:300px;height:120px;overflow-x:auto;overflow-y:hidden;border:1px solid #ff9900;" nowrap="nowrap">
          {THUMB_STRIP}
        </div>


the style is of course be in the css but for illustration sake I pasted it instead the div.
With this we get a single row "thumbstrip" that can contain 5 10 20 etc. thumbnails with the scroller auto activating once there's an overflow.
Bad thing about it is that once you click on a thumb in the scroller it will "scroll back" to the first thumbnail. Adding a goto javascript ref to a named anchor "active_thumb" placed in front of the clicked thumb would solve the problem.  this "thumbstrip scroller" would be optional and a named anchor doesn't hurt in any way.

What you think?
Cheers
eke.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
anchored thumbstrip scroller
« Reply #1 on: November 30, 2003, 11:25:49 pm »

sounds nice. Do you have a working demo we could look at?

GauGau
Logged

eke

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
anchored thumbstrip scroller
« Reply #2 on: November 30, 2003, 11:47:47 pm »

fiddling with it on my localhost atm

still trying to figure out where best to insert that "active_thumb" anchor in the functions.inc.php script
Logged

rbl

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 60
    • http://lomoblog.com/
anchored thumbstrip scroller
« Reply #3 on: December 03, 2003, 09:48:48 pm »

sorry, I'm having a bad time trying to visualize this one. Can you post a screenshot?

Thanks!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.