I am trying modify Photo gallery and I want it to rotate through the
images, I currently use
setInterval("document.getElementById('sliderotate').click()", 5000);
but of course this does not work in FireFox.

As much as I an tell the click is bind in a js file here:

 init: function(opt) {
    opt = $.extend({}, EYE.spacegallery.defaults, opt||{});
    return this.each(function(){
     var el = this;
     if ($(el).is('.spacegallery')) {
      $('<a href="#" id="sliderotate"></a>')
       .appendTo(this)
       .addClass(opt.loadingClass)
       .bind('click', EYE.spacegallery.next);
      el.spacegalleryCfg = opt;
      el.spacegalleryCfg.images = el.getElementsByTagName
('img').length;
      el.spacegalleryCfg.loaded = 0;
      el.spacegalleryCfg.asin = Math.asin(1);
      el.spacegalleryCfg.asins = {};
      el.spacegalleryCfg.tops = {};
      el.spacegalleryCfg.increment = parseInt
(el.spacegalleryCfg.perspective/el.spacegalleryCfg.images, 10);

How can I call this
.bind('click', EYE.spacegallery.next);
 with a timed interval? I tried setInterval("$EYE.spacegallery.next",
5000); but this does not work. Can anyone give me some guidance on
this or refer me to a tutorial?

Tim - New Guy

Reply via email to