Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/11/2009, 15:41
marcelonologo
 
Fecha de Ingreso: julio-2009
Mensajes: 3
Antigüedad: 14 años, 9 meses
Puntos: 0
Respuesta: conflicto entre jquery y prototype

Me sucede algo parecido pero con este código:
Código:
 setup:function(config){ 
      //Disable Step Gallery scrollbars ASAP dynamically (enabled for sake of users with JS disabled) 
      document.write('<style type="text/css">\n#'+config.galleryid+'{overflow: hidden;}\n</style>') 
      jQuery(document).ready(function($){ 
         config.$gallery=$('#'+config.galleryid) 
         config.gallerywidth=config.$gallery.width() 
         config.offsets={left:stepcarousel.getoffset(config.$gallery.get(0), "offsetLeft"), top:stepcarousel.getoffset(config.$gallery.get(0), "offsetTop")} 
         config.$belt=config.$gallery.find('.'+config.beltclass) //Find Belt DIV that contains all the panels 
         config.$panels=config.$gallery.find('.'+config.panelclass) //Find Panel DIVs that each contain a slide 
         config.panelbehavior.wraparound=(config.autostep && config.autostep.enable)? true : config.panelbehavior.wraparound //if auto step enabled, set "wraparound" to true 
         config.onpanelclick=(typeof config.onpanelclick=="undefined")? function(target){} : config.onpanelclick //attach custom "onpanelclick" event handler 
         config.onslideaction=(typeof config.onslide=="undefined")? function(){} : function(beltobj){$(beltobj).stop(); config.onslide()} //attach custom "onslide" event handler 
         config.oninit=(typeof config.oninit=="undefined")? function(){} : config.oninit //attach custom "oninit" event handler 
         config.beltoffset=stepcarousel.getCSSValue(config.$belt.css('marginLeft')) //Find length of Belt DIV's left margin 
         config.statusvars=config.statusvars || []  //get variable names that will hold "start", "end", and "total" slides info 
         config.$statusobjs=[$('#'+config.statusvars[0]), $('#'+config.statusvars[1]), $('#'+config.statusvars[2])] 
         config.currentpanel=0 
         stepcarousel.configholder[config.galleryid]=config //store config parameter as a variable 
         if (config.contenttype[0]=="ajax" && typeof config.contenttype[1]!="undefined") //fetch ajax content? 
            stepcarousel.getremotepanels($, config) 
         else 
            stepcarousel.alignpanels($, config) //align panels and initialize gallery 
      }) //end document.ready 
      jQuery(window).bind('unload', function(){ //clean up 
         if (config.panelbehavior.persist){ 
            stepcarousel.setCookie(window[config.galleryid+"persist"], config.currentpanel) 
         } 
         jQuery.each(config, function(ai, oi){ 
            oi=null 
         }) 
         config=null 
      }) 
   } 
}
Si alguien me puede dar una mano se lo agradecería.

Saludos