im working on some project, and i'm trying to turn on the gallery slideshow after "x" msec,
but when i'm adding the class, the cycle plugin just not working, the code:
jQuery:
i also tried to add an attribute of class:HTML Code:$('.gallery-slideshow').cycle({ fx: 'fade', speed: 'fast', timeout: 1000, random: 1 }); setInterval (function (){ $('#girl').addClass('gallery-slideshow'); }, 600);
but its not working.HTML Code:$('.gallery-slideshow').cycle({ fx: 'fade', speed: 'fast', timeout: 1000, random: 1 }); setInterval (function (){ $('#girl').attr('class', 'gallery-slideshow'); }, 600);
html:
i appreciate your help, thanksHTML Code:<div class="gallery"> <div id="girl"> <img src="../Images/gallery-imgs/1.jpg" alt="" /> <img src="../Images/gallery-imgs/2.jpg" alt="" /> <img src="../Images/gallery-imgs/3.jpg" alt="" /> <img src="../Images/gallery-imgs/4.jpg" alt="" /> </div> </div>


Reply With Quote
Bookmarks