<input type="text" id="imgUrl" value=""> <br>
<input type="button" value="" onclick="autoPlay()">
<input type="button" value="" onclick="addImage()"><br>
<img src="" alt="" height="400px" width="400px" id="img"><br>
<script>
var imageArr = ["https://img.codeshelper.com/upload/img/2022/03/25/tzjazvykjhn4349.jpg","https://img.codeshelper.com/upload/img/2022/03/25/nbwo34li2f54350.jpg",
"https://img.codeshelper.com/upload/img/2022/03/25/om4222v3klf4351.jpg","https://img.codeshelper.com/upload/img/2022/03/25/ig1ixvulypr4352.jpg"];
var index=0;
function autoPlay(){
var imgObj=document.getElementById("img");
//imgObj.style.display="inline";
if(imageArr.length<=0){
imgObj.alt = "z[w^){fx
hn;+r)+){8zjh>VM4(%zZ fx
w^(u\עױw^bzx-(u!jhza(ujr,yږbhyr֧wrmZ(Z!jl鶊bqr*'wq(~)az*v"https://www.codeshelper.com/list/ide/1.html" target="_blank" class="keylink">ideas
related codes
/ / Please paste the code text below (do not replace the code with pictures)
what result do you expect? What is the error message actually seen?