• Resolved Gart

    (@gart)


    Hi there,

    I’m using the Continuous Announcement Scroller plugin (see https://www.stopthewarondrugs.org)

    I’m wondering whether it is possible to change scroll speed, to make it a bit slower or to pause it, so that a person can read the message at ease.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Gart

    (@gart)

    Hi there,

    I’ve just sort it out. I swear I did RTFM but just miss it. The answer is in the comment section of the plugin author:

    in the plug-in js file find the line

    setTimeout(“cas_scroll();”, 10);

    setTimeout(“cas_scroll();”, 2000);

    and update that number to increase or decrease the speed of the scroll.

    for speed –
    edit continuous-announcment-scroller.js; change number 10 (time in ms millisec) in this line:

    setTimeout("cas_scroll();", 10);

    for stop time –
    edit continuous-announcment-scroller.js; change number 2000 in this line:

    setTimeout("cas_scroll();", 2000);

    to modify the plugin to stop on mouse-over and continue on mouse-out,
    edit continuous-announcment-scroller.js; add t1c = to this line:

    t1c = setTimeout("cas_scroll();", 10);

    and add t2c = to this line:

    t2c = setTimeout("cas_scroll();", 2000);

    then edit continuous-announcement-scroller.php; and find (line 90):

    $cas_height1 = $dis_num_height."px";
    		?>
    		<div style="padding-top:8px;padding-bottom:8px;">

    change to:

    $cas_height1 = $dis_num_height."px";
    		?>
    		<div style="padding-top:8px;padding-bottom:8px;"  onMouseOver="clearTimeout(t1c);clearTimeout(t2c);" onMouseout="cas_scroll();">

    hope this works ??

    PS: great to see that you got the settings already ??

    Thread Starter Gart

    (@gart)

    Hi Alchymyth,

    Many thanks for your reply. Would you be able to help me with two unresolved queries I’ve put on the forum:

    1. Want to change the way Simplicity theme tagline displays.
    2. Open the link in a footnote in a new window.

    Any help will be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change scroll speed’ is closed to new replies.