Slider plugin - mouseover pause Slider plugin - mouseover pause
 

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]

Main Menu

Slider plugin - mouseover pause

Started by Bar6, August 06, 2011, 05:12:45 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Bar6

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

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