• Hi

    Our website uses a two column layout, where the right sidebar contains a scrolling list of recent news items. At the bottom of the home page is a slider showing a random selection of photos from our events.

    One of our members has recently commented that due to an eyesight condition from which she suffers, the scrolling sections give her an unpleasant sensation.

    I am interested to know if there is some way in which I can add a user controlled setting to toggle these sections on/off? If possible, it would be good if I could add it as a menu item in the member zone section of our site.

    Thanks in advance for your help and advice.

    Ian

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    Your site is geo-fenced and not accessible to me, but I assume the slider is JavaScript driven. Without the script, users will likely see the first frame and it’ll never change. You could add a short script to a menu item that sets a certain cookie value and reloads the page. You could conditionally load the script that drives the slider only if there is no cookie directing otherwise.

    Of course users would need to accept cookies for this to work. You’ll likely need to coordinate with whichever module is responsible for the slider in order to conditionally load its script.

    End users could disable JavaScript at their end. While it’ll likely prevent the slider from changing frames, it might also break other functionality on your site. Disabling JavaScript in one’s browser will also likely break functionality on other sites besides yours. It’d be a faff to need to turn off JavaScript here and turn it back on elsewhere. Not many users would be keen on this solution, but if animated elements are that bothersome it might be worth the trouble.

    Thread Starter cihomewood

    (@cihomewood)

    Thanks for the response. Actually the slider is at the bottom of the page and probably less of an issue. The more important feature would be able to turn off/on the scrolling ‘Recent News’ widget in the right sidebar. It would be nice if there was a way for a user to do this.

    Cheers

    Moderator bcworkz

    (@bcworkz)

    Regardless of which element is being animated, if it’s JavaScript driven (very likely), you could conditionally not load the script needed to drive the animation. The issue could be the script involved is required for other functionality besides running the animation.

    Ideally the script itself would have some method of turning the animation on or off. Scripts often have a slew of options you can set while instantiating the script. There might be an option you could set based on a user’s prior indicated preference. You’d need to check the script’s related documentation or ask through its developer’s dedicated support channel for advice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘User controlled page sections’ is closed to new replies.