BipadTaranMahato / slideshow

Automatically exported from code.google.com/p/slideshow
0 stars 0 forks source link

onEnd problem :( #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I try to use onEnd option but that doesn't work , anyone can explain me why
I got this error please :

onEnd is not defined

CODE :

<script type="text/javascript"> 
    function test()
    {
alert('hello');
    }
    //<![CDATA[
      window.addEvent('domready', function(){
        var data = {
          '1.jpg': { caption: 'Volcano Asención in Ometepe, Nicaragua.' }, 
          '2.jpg': { caption: 'A Ceibu tree.' }, 
          '3.jpg': { caption: 'The view from Volcano Maderas.' }, 
          '4.jpg': { caption: 'Beer and ice cream.' }
        };
        var myShow = new Slideshow('show', data, {controller: true, height:
300, hu: 'images/', thumbnails: true, width: 400,loop:false},onEnd(test));
      });
    //]]>
    </script>

Original issue reported on code.google.com by stellvia...@gmail.com on 24 Jan 2009 at 1:09

GoogleCodeExporter commented 9 years ago
Instead of 

var myShow = new Slideshow('show', data, {controller: true, height:
300, hu: 'images/', thumbnails: true, width: 400,loop:false},onEnd(test));

Should be 

test = function(){ ... }

var myShow = new Slideshow('show', data, {controller: true, height:
300, hu: 'images/', thumbnails: true, width: 400,loop:false,onEnd: test});

or 

var myShow = new Slideshow('show', data, {controller: true, height:
300, hu: 'images/', thumbnails: true, width: 400,loop:false,onEnd: function(){ 
... }});

Original comment by aeron.gl...@gmail.com on 6 Feb 2009 at 1:35