tags:

views:

149

answers:

2

I am using jcarousel, and on window resizing i am getting the error,

jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...

please give me solution for this..

thanks

A: 

This is by design, you must set the width and height of each image:

<li><img src="" width="75" height="75" alt="" /></li>
Joe R
i have set width and height for all the images, but still i get the alert message..
nirmal
It this all browsers? Are the images all the same size?
Joe R
iam generating images in loop.. and all the images are of same size.. but changing the bind function of window resize in jcarosel.js file has stoped display of alert message, so, is there any aleternate way for for passing unbind value from anywhere outside js file
nirmal
A: 

You need to set a height and width on the ul or whatever container holds the images. Check out the css supplied with jCarousel (it is long but only the first few rules are relevant).

Tgr