var imgs = ''; $(function () { var cnt = imgs.length; var $imageSlide = $('img[id$=imageSlide]'); $imageSlide.attr('src', imgs[cnt - 1]); $imageSlide[0].style.opacity = 100; setInterval(Slider, 5000); function Slider() { $imageSlide.fadeOut("slow", function () { $(this).attr('src', imgs[(imgs.length++) % cnt]).fadeIn("slow"); }); } });
<img id="imageSlide" runat="server" style="opacity: 100" height="200" width="750" />
opacity
<img id="imageSlide" runat="server" style="opacity: 1" height="200" width="750" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)