News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

anchored thumbstrip scroller

Started by eke, November 30, 2003, 12:53:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eke

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:

        <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.

Joachim Müller

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

GauGau

eke

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

rbl

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

Thanks!