[源码] mootools slideshow

han_chengroy 2010-09-19
在mootools官网上找到了slideshow的demo,现在我想动态通过后台取得图片,然后显示;哪位大哥有写好的代码贴给我,感激不尽......
  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});
      });




现在是预先定义好的数据,如何请求后台取数据呢,尝试了几次不能正常显示
Global site tag (gtag.js) - Google Analytics