Slider plugin - mouseover pause Slider plugin - mouseover pause
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.