(index):139 Uncaught TypeError: document.getElementsByClass is not a function
Publicado por victor (3 intervenciones) el 20/12/2016 18:59:13
No tengo experiencia en javascript, a ver si alguien pudiera ayudar, tengo el siguiente código:
me da el error que señalo en el tema.
1
2
3
4
5
6
7
8
9
10
11
12
13
function stopAnimation(){
var clase = document.getElementsByClass("djslider-in");
for(var c=0; c < clase.length; c++){
var on1 = clase[c].childNodes;
for(var i = 0; i < on1.length; i++){
if(on1[i].onmouseover){
on1[i].onmouseover = function(){
this.parentNode.style.animation = "none";
}
}
}
}
};
me da el error que señalo en el tema.
Valora esta pregunta


0