I have a slider which is made by jQuery. It uses next and previous buttons to slide and it has automatic sliding feature with setInterval method.It works on Internet Explorer and Firefox but not on Chrome.How can I solve this problem.T
My little project is here.
It is because when you do
imagesare not loaded, and browser does not know its width and width oflielements, so$("#s li").width()provides0.For example if you will write
instead of
then it will works, because browser know
#selement width from css.