[Solved] Displaying random images on websites [closed]


you can’t randomized image with html , you have to use java script or css5 try this

          window.onload = choosePic;

      var myPix = new Array("images/lion.jpg","images/tiger.jpg","images/bear.jpg");

       function choosePic() {
 randomNum = Math.floor((Math.random() * myPix.length));
  document.getElementById("myPicture").src = myPix[randomNum];
                }

solved Displaying random images on websites [closed]