Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/01/2014, 09:57
Avatar de mauricioheat
mauricioheat
 
Fecha de Ingreso: septiembre-2011
Ubicación: Bogota
Mensajes: 39
Antigüedad: 13 años, 2 meses
Puntos: 0
Problema con codigo javascript y jquery

Buenas tardes tengo un problema con dos codigos, trate de usar noConflict pero no funciono del todo bien creo que me falta cambiar algo o lo cambie mal, a continuacion coloco los dos codigos originales gracias.
codigo uno:
<a href='http://dstats.net/download/http://databanda.com/dataweb/sites/all/themes/InspiroB/imagtm/descargas/Procesos%20Databanda/Form%20Agrupacion%202013.pdf'>Form agrupacion 2013</a>
<//script type='text/javascript' src='http://dstats.net/dstatsjs.php?file=http://databanda.com/dataweb/sites/all/themes/InspiroB/imagtm/descargas/Procesos%20Databanda/Form%20Agrupacion%202013.pdf'><///////script>
<//////script type='text/javascript'>document.write(dsdlcounter(dsCounter)) ;<////script>

codigo2:
Drupal.behaviors.views_accordion = {
attach: function(context) {
if(Drupal.settings.views_accordion){
(function ($) {
$.each(Drupal.settings.views_accordion, function(id) {
/* Our view settings */
var usegroupheader = this.usegroupheader;
var viewname = this.viewname;
var display = this.display;

/* the selectors we have to play with */
var displaySelector = '.view-id-'+ viewname +'.view-display-id-'+ display +' .view-content';
var headerSelector = this.header;

/* Prepare our markup for jquery ui accordion */
$(displaySelector +' '+ headerSelector +':not(.ui-accordion-header)').each(function(i){
var hash = "#"+ viewname +"-"+ display +"-"+ i; // hash to use for accordion navigation option
var $this = $(this);
var $link = $this.find('a');
// if the header is not already using an anchor tag, add one
if($link.length == 0){
// setup anchor tag for navigation
$this.wrapInner('<a href="'+hash+'"></a>');
}
// if there are already, they wont be clickable with js enabled, we'll use them for accordion navigation
else{
// @FIXME ?
// We are currently destroying the original link, though search crawlers will stil see it.
// Links in accordions are NOT clickable and leaving them would kill deep linking.
$link.get(0).href = hash;
}

// Wrap the accordion content within a div if necessary
if (!usegroupheader) {
$this.siblings().wrapAll('<div></div>');
}
});

/* jQuery UI accordion call */
$(displaySelector +':not(.ui-accordion)').accordion({
header: headerSelector,
animated: this.animated,
active: this.rowstartopen,
collapsible: this.collapsible,
autoHeight: this.autoheight,
event: this.event,
fillSpace: this.fillspace,
navigation: this.navigation,
clearstyle: this.clearstyle
});
});
})(jQuery);
}
}
};

Gracias