[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/views_slideshow_imageflow/themes/js/ -> views_slideshow_imageflow.js (source)

   1  
   2  /**
   3   *  @file
   4   *  This will initiate any ImageFlow browsers we have set up.
   5   */
   6  
   7  
   8  (function ($) {
   9    var viewsSlideshowImageFlowPlayers = new Array();
  10  
  11    Drupal.behaviors.viewsSlideshowImageFlow = function (context) {
  12      $('.views-slideshow-imageflow-images:not(.viewsSlideshowImageFlow-processed)', context).addClass('viewsSlideshowImageFlow-processed').each(function () {
  13        var imageflow = new ImageFlow();
  14        var id = $(this).attr('id');
  15        var flow = Drupal.settings.viewsSlideshowImageFlow[id];
  16        if (!flow['slider']) {
  17          flow['slider'] = false;
  18        }
  19        if (!flow['captions']) {
  20          flow['captions'] = false;
  21        }
  22  
  23        var _settings = {
  24          ImageFlowID: id,
  25          reflections: false,
  26          imagesHeight: flow['imagesHeight'],
  27          aspectRatio: flow['aspectRatio'],
  28          imageCursor: flow['imageCursor'],
  29          startID: flow['startID'],
  30          slider: flow['slider'],
  31          sliderCursor: flow['sliderCursor'],
  32          captions: flow['captions'],
  33          imageFocusM : flow['imageFocusM'],
  34          scrollbarP : flow['scrollbarP'],
  35          imageFocusMax : flow['imageFocusMax']
  36        };
  37  
  38        if (flow['onClick']) {
  39          eval("_settings['onClick'] = " + flow['onClick']);
  40        }
  41  
  42        imageflow.init(_settings);
  43        viewsSlideshowImageFlowPlayers[id] = imageflow;
  44      });
  45    };
  46  
  47    viewsSlideshowImageFlowPlayer = function (id) {
  48      return viewsSlideshowImageFlowPlayers[id];
  49    }
  50  })(jQuery);


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7