Erro ao usar split
Alguém sabe por que a minha função retorna erro: myAtributes.split is not a function
function startLytebox(myAtributes) {
var brokenstring = myAtributes.split('__');
var title = brokenstring[1];
var href = 'images/fotos/' + brokenstring[0];
var rel = brokenstring[2];
var anchor = this.document.createElement('a');
anchor.setAttribute('title', title);
anchor.setAttribute('href', href);
anchor.setAttribute('rel', rel);
myLytebox.start(anchor, false, false);
return false;
}Discussão (1)
Carregando comentários...