Vojta Jina - 2008-11-04

Hi, thanks a lot for dynapi. Its great tool...

I need to scroll some images (on the right side of my web, few photos will slide down...)

Everything works fine, but I cant manage 2 things...

1) at the start, there is an empty div, and it starts sliding from top... I wanna to load the first images and then, they start sliging... so there is no empty place

2) when the loop is at the end, there is another space.... after the last image slide out of the div, then, the first one starts sliding from top.... I also dont want this empty space...

So, an example:
I have 5 photos...
start position: there are first 3 photos in the div "scroller"
after the page is loaded.... the images start to slide down....
when the last one is sliding, there is next image sliding after (its the first one), but no space between them...

I also cant stop the sliding.... the method stop() does not work....

There is my script:
        <script language="JavaScript" src="_dynapi/src/dynapi.js"></script>
    <script language="Javascript">
        dynapi.library.setPath('_dynapi/src/');
        dynapi.library.include('dynapi.api');
        dynapi.library.include('Marquee');
    </script>
    <script language="Javascript">
      var html  = '<a href="something" title=""><img src="./_img/band/first.png" alt="" class="foto" /></a><br /><a href="something" title=""><img src="./_img/band/second.png" alt="" class="foto" /></a><br /><a href="something" title=""><img src="./_img/band/third.png" alt="" class="foto" /></a><br /><a href="something" title=""><img src="./_img/band/fourth.png" alt="" class="foto" /></a><br /><a href="something" title=""><img src="./_img/band/fifth.png" alt="" class="foto" /></a><br />';
      var x = new Marquee(html,'auto','auto',200,500);
      x.setLocalStyleAttribute('backColor','#fbbb01');
      x.setBgImage('_img/film.png');
      x.setDirection('bottom');
      x.start()
      dynapi.document.addChild(x);
    </script>

Is there anybody, who can help me ???
Thanks a lot