I am having to make my site change certain images, I created the following code, somebody could accidentally point to errors ..?
<script type="text/javascript">
function ImgsRandom(){
var trocar=new Array()
trocar[0]='<img src="site.projeto/Logo_pilates.jpg" alt=""/>';
trocar[1]='<img src="site.projeto/equipamento.jpg" alt=""/>';
trocar[2]='<img src="site.projeto/equipamento_02.jpg" alt=""/>';
var whichtrocar=Math.floor(Math.random()*(trocar.length));
document.getElementById("imgsrandon").innerHTML = trocar[whichquote];
}
window.onload=ImgsRandom;
</script>