views:

20

answers:

0

I'm creating a gallery where user can browse next previous and reading image name from array like

imgNumber1++
          if (imgNumber1 == NumberOfImages)
               imgNumber1 = 0
               document.images[refimg].src = img[imgNumber1]

It is working fine but I want to animate or slide when replacing image src. How can I do that?