Advanced search  


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.

Pages: [1]   Go Down

Author Topic: Slider plugin - mouseover pause  (Read 5173 times)

0 Members and 1 Guest are viewing this topic.


  • Contributor
  • Coppermine newbie
  • ***
  • Country: us
  • Offline Offline
  • Posts: 8
    • Knoper
Slider plugin - mouseover pause
« on: August 06, 2011, 05:12:45 pm »

Much of the javascript in the Slider plugin is based on the Conveyor Belt slideshow script. There, the source website mentions that...

Images can be set to click through to various URLs, and when the mouse moves over the "belt", it pauses for the visitor to interact.

Unlike the source slideshow script, the Slider plugin (version 0.7 at the time of this post) does not «pause» on a mouseover. Turns out that such a feature can easily be «restored» to the Slider plugin. Note the following mouseover events...

onmouseover="copyspeed=0" onmouseout="copyspeed=parseInt(js_vars.slider_copyspeed)"

Specify these mouseover events for the div#slider_auto2 found in codebase.php (and fetch.php if present), as shown below, without deleting any of the existing code...

<div id="slider_autow2" onmouseover="copyspeed=0" onmouseout="copyspeed=parseInt(js_vars.slider_copyspeed)" ...

By simply adding these mouseover events, the Slider plugin will pause on a mouseover, and then resume motion after a mouseout. I've modified the Slider plugin in such a way (including a somewhat slower sliding speed) for my gallery. Maybe someone will find this info useful.
Pages: [1]   Go Up

Page created in 0.023 seconds with 20 queries.