Hi everybody,

I'm trying to add some external buttons in order to control the scroll of the Imageflow.
Like I show in the picture below :
- the left arrow needs to call this function : handleMouseWheel(1), witch is present in imageflow.js
- the right arrow needs to call this function : handleMouseWheel(-1)

The problem is I don't find the name of the object imageflow created by Drupal.
When I write :

<a href="#" onclick="javascript:imageflow.handleMouseWheel(1);">TEST</a>

It doesn't work. Do you have an idea ?

Thanks for your help.

CommentFileSizeAuthor
fleches.PNG168.83 KBkiliweb

Comments

madrock9’s picture

Try adding
buttons : true
in views_slideshow_imageflow.js under

imageflow.init({

aaron’s picture

Version: 6.x-1.0-beta1 » 6.x-2.x-dev
Category: feature » support
Status: Active » Fixed

In the dev2 branch, I've rectified that, by adding a viewsSlideshowImageFlowPlayer(div) function, which you would call in your JS with viewsSlideshowImageFlowPlayer('my-imageflow-div') -- that will return the raw ImageFlow object.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.