I have an array of urls with place for images on page load. Give them a & lt; Asp: img & gt;
needs to show with 5 seconds time interval I
Is it & asp: timer & gt;
, or is there any way to do this?
& asp: image id = "image1" runat = "server" & gt; & Lt; Script type = "text / javascript" & gt; Var imgArray = ['1.png', '2.png', '3.png', '4.png', '5.png', '6.png', '7.png', '8.png ',' 9. PNG ',' 10.png '], IMGoto Show = 0; Function showImage () {if (imgToShow> imgArray.length - 1) imgToShow = 0; Document.getElementById ("& lt;% = image1.ClientID%>"). Src = IMGear [IMTO Show ++]; } ShowImage (); Window.setInterval (show image, 5000); & Lt; / Script & gt;
Comments
Post a Comment