arrays - Get image width between given range with getElementbyClass javascript -
how can width of elements between given range jquery or javascript?
let's have buch of images hidden want select ones big enough matter client.
this code working on:
var imglink = document.getelementsbyclassname("imglink") array imglk; (i=0;i<imglink.length;i++) { if(imglink[i].style.size >= "600px"){ imglk += imglink[i]; } } (i=0;i<imglk.length;i++) { if(imglk[i].style.display == "none"){ imglk[i].style.display = "block"; imglk[i].style.opacity = "1"; } }
Comments
Post a Comment