¡@

Home 

2014/10/16 ¤W¤È 12:09:15

jquery Programming Glossary: swapimages

jQueryReplacing images at time intervals

http://stackoverflow.com/questions/8366684/jqueryreplacing-images-at-time-intervals

i'm trying to cycle though them using this code function swapImages var active '#myGallery .active' var next '#myGallery .active'.. .addClass 'active' document .ready function setInterval 'swapImages ' 1000 Html div id myGallery img src br_xmas_1.png class active.. image share improve this question Try this function swapImages var current '#myGallery img visible' var next current.next if..

jQueryReplacing images at time intervals

http://stackoverflow.com/questions/8366684/jqueryreplacing-images-at-time-intervals

it does a weird zoom out effect. In short I have 4 images and i'm trying to cycle though them using this code function swapImages var active '#myGallery .active' var next '#myGallery .active' .next .length 0 '#myGallery .active' .next '#myGallery img.. active.show function active.removeClass 'active' next.show .addClass 'active' document .ready function setInterval 'swapImages ' 1000 Html div id myGallery img src br_xmas_1.png class active img src br_xmas_2.png img src br_xmas_3.png img src br_xmas_4.png.. full code here or not working jsfiddle javascript jquery image share improve this question Try this function swapImages var current '#myGallery img visible' var next current.next if next.length 0 next '#myGallery img first' current.hide next.show..