• Resolved chrimbus

    (@chrimbus)


    Hi There

    I couldn’t find any API documentation anywhere…

    Here is what I am trying to do… (With jquery/js)

    When a slide changes, I need content on the page to switch out…

    For example: Slide 1 is there, show slide one content
    When Slide 2 shows up, hide slide 1 content and show slide 2 content.

    Basically I need a way to tie in to each function. Something along the lines of
    if slide-1-active do this – if slide-2-active do this

    Thanks for your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, Jordan!

    Slider WD plugin allows you to set Slider Callbacks for each slideshow, allowing you to call your own Javascript function.

    You can access these options from the Settings tab of your slideshow, Callbacks tab. The following actions can trigger the script:

    • on slider Init,
    • on slide change start,
    • on slide change end,
    • on slide play,
    • on slide pause,
    • on slide hover,
    • on slide blur,
    • on slider resize,
    • on swipe start.

    Make sure to select the desired action for your Javascript code, then hit Update button to save Slider Settings.

    However, unfortunately, the plugin does not have the callback to trigger Javascript when a certain slide changes.

    Let me know in case you have questions.
    Thanks!

    Thread Starter chrimbus

    (@chrimbus)

    Can you please give me an example of the code I would put in the callback box?

    I was assuming it would be something like this: (But it isn’t working.)

    function myCallbackFn() {
     alert('test');
    }
    myCallbackFn();
    • This reply was modified 6 years, 10 months ago by chrimbus. Reason: code edit
    • This reply was modified 6 years, 10 months ago by chrimbus.
    • This reply was modified 6 years, 10 months ago by chrimbus.

    Hi, Jordan!

    Our development team discussed this problem and found, that there is a bug in Slider WD plugin Callbacks feature.

    They will fix it in the update of next week.
    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Do Something On Slide Change’ is closed to new replies.