Purtroppo anche modificando i rel con onclick tramite la funzione non sembra funzionare....a meno che non sbaglio qualcosa......Originariamente inviato da Mega69
Prima di tutto ecco come risolvere questo problema:
Questa funzione, trasformaRel, la richiami dopo che la richiesta ajax è completata.codice:function trasformaRel() { if (!document.getElementsByTagName){ return; } var anchors = document.getElementsByTagName('a'); // loop through all anchor tags for (var i=0; i<anchors.length; i++){ var anchor = anchors[i]; var relAttribute = String(anchor.getAttribute('rel')); // use the string.match() method to catch 'lightbox' references in the rel attribute if (anchor.getAttribute('href') && (relAttribute.toLowerCase().match('lightbox'))){ anchor.onclick = function () {myLightbox.start(this); return false;} } } }
Scusa, il fatto è che mo vado di fretta, poi ti spiego il succo della questione.![]()