1
Converts Numbers from 1 ao 26
for A - Z
of the Alphabet. I have a directory with several files and wanted to do a "FOR" for, ... the name(file). I’m doing this with files named by ordinal numbers, but I’d like to do this with files named by letters.
<script>
var dir = "video"; // acessa o diretório vídeos, onde estão os vídeos .3gp e suas thumnail .png
window.onload = function(){
var alfabeto = "3";
for (i = 1; i <= alfabeto; i++) {
document.body.innerHTML += "<a href='"+dir+"/"+i+".3gp' target='player'><img src='"+dir+"/"+i+".png' class='option'></a>";
}
}
</script>
Good staff I hope to have expressed myself enough so that we can together find the solution, I count on your help. I thank you, from now on.
And what you’ve done to solve your problem?
– rubStackOverflow