Image Crawler Using Javascript

+3 raghav garg · February 1, 2015
I am trying to create a image marquee effect using javascript.
I have created it but there is whitespace between last and first image.
Can anyone help me to make it continuous(removing white space)
Here is my code for it.

Thanks in advance..!!

Post a Reply


Oldest  Newest  Rating
0 Samuel Oloruntoba · February 11, 2015
the marquee works fine, what do you want fixed
0 william appiah-dankwah · February 15, 2015
hay that works nicely whats the code to put images in javascript?
0 mag magz · February 16, 2015
var i = document.createElement('div'); = 'test';
i.innerHTML = '<img src="lion.jpg"></img>';
0 Jay Deshaun · February 16, 2015
Looks nice!

About your problem,
the only reason why you're seeing white space is because you're moving a container of images, not the images them selves where as you could throw one behind the last one being shown.
0 william appiah-dankwah · February 16, 2015
Sorry man i don't know what that code is but it don't work
0 Jay Deshaun · February 16, 2015
@william Um, did you change the src of the image to another picture located either on your computer or on the web?
0 william appiah-dankwah · February 16, 2015
i can code. its cool the code is not clear i have copied it exactly, i have replaced the image name.  i am still learning  
0 Jay Deshaun · February 19, 2015
It's alright @william, everyone has to start some where and will need to get help some where ( this forum is the best place for help btw ).
  • 1



A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.