I love this module, setup was easy with no trouble.

I am wondering if there is a way to have the display of the images, start in the middle of the images, instead of the first item?

Thanks,

Comments

jpsalter’s picture

I've modified the javascript for a client and should be able to include this in the next release.

t4him’s picture

can you give a hint where this is in the .js file? My images start too far the the left, thus it scrolls into the left block region. Other that that this module is flawless. Can wait to see what you do with the vars . . . autoscrolll? timer view of each image? mouse over image zoom?

DanGarthwaite’s picture

A quick hack I did just to clue the user in that it's interactive. Note the last line of code: this emulates a mouse wheel event, once, after 1 second.

window.onload = function()
{
    if(document.getElementById(conf_imageflow))
    {
        hide(conf_loading);
        refresh(true);
        show(conf_images);
        show(conf_scrollbar);
        initMouseWheel();
        initMouseDrag();
        intervalId = setTimeout( "handle(-1)", 2000 );
    }
}
DanGarthwaite’s picture

I can't seem to find a way of obtaining the current image index? If I could derive the current image and the number of images I could submit a patch to rotate the images with a setInterval.

I'm getting close with an ugly hack of determining edge conditions with something like\

 if ( current_pos >= image_no * image-width || current_pos < image_width+10 )
  direction *= -1;
handle(direction);

Maybe I should just add a global image_idx variable and refactor to keep track?

jamesbenison’s picture

Closing out obsolete issue.

jamesbenison’s picture

Status: Active » Closed (won't fix)