Closed (fixed)
Project:
Views Slideshow: ImageFlow
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
7 Jul 2009 at 23:17 UTC
Updated:
30 Apr 2010 at 17:40 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| fleches.PNG | 168.83 KB | kiliweb |
Comments
Comment #1
madrock9 commentedTry adding
buttons : true
in views_slideshow_imageflow.js under
imageflow.init({
Comment #2
aaron commentedIn 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.