关于reel.jQuery [resize&自动播放循环] [英] About reel.jQuery [resize & Autoplay with Loop]

查看:44
本文介绍了关于reel.jQuery [resize&自动播放循环]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 jQuery Reel Plugin 来显示包含100张/更多图片的产品3D视图。所有图像都动态附加到数据图像(通过base64嵌入式源)。就像用户单击product1而不是图像(已经在base64中)将附加到html标签,如下所示:



I am using jQuery Reel Plugin for displaying a product's 3D view with 100/more images. All images are dynamically attaching to data-images (via base64 embedded source). Like if user click on "product1" than images (already in base64) will be attached to the html tag as shown below:

for (var i = startIndex; i <= endIndex; i++) {
            aImage[imgIndex] = new Image();
            aImage[imgIndex].src = loadImage(i);

            img.images.push(aImage[imgIndex]);
            imgIndex += 1;
        }

$("#imgFront").speed = 0.3;
$("#imgFront").frames = imgIndex-1;
$("#imgFront").reel();





现在,问题是:我加载的图像(数据图像)显示的尺寸非常大(缩放x#4,显然这样做不适合我的img控件),但是当我使用相同的base64图像代码直接在img控件中显示时(即)它显示正确而没有缩放。此外,当我直接在数据图像中应用这些base64images时,它可以正常显示而无需任何缩放。



也可以在.reel()命令之后图片无法启动旋转...就像它在页面加载时自动启动。



有人,请帮助我...



now, the problem is : the images which I am loading (for data-images) is displayed very big in size (zoom x#4, which obviously does not fit in my img control), but when I use the same base64 image code for displaying directly in img control (i.e. ) it displayed proper without zooming. Also when I applying these base64images directly in data-images, it display properly without any zooming.

also, after the .reel() command the picture doesn't start rotating... like it is starting automatically when page loading.

Someone, please help me...

推荐答案

#imgFront)。speed = 0 3 ;
("#imgFront").speed = 0.3;


#imgFront)。frames = imgIndex-1;
("#imgFront").frames = imgIndex-1;


#imgFront)。reel();
("#imgFront").reel();





现在,问题是:我正在加载的图像(用于数据图像)显示的尺寸非常大(缩放x#4,显然不适合我的img控件),但是当我使用相同的base64图像代码进行显示时直接参与img控制(即)它显示正确,没有缩放。此外,当我直接在数据图像中应用这些base64images时,它可以正常显示而无需任何缩放。



也可以在.reel()命令之后图片无法启动旋转...就像它在页面加载时自动启动。



有人,请帮助我...



now, the problem is : the images which I am loading (for data-images) is displayed very big in size (zoom x#4, which obviously does not fit in my img control), but when I use the same base64 image code for displaying directly in img control (i.e. ) it displayed proper without zooming. Also when I applying these base64images directly in data-images, it display properly without any zooming.

also, after the .reel() command the picture doesn't start rotating... like it is starting automatically when page loading.

Someone, please help me...


这篇关于关于reel.jQuery [resize&amp;自动播放循环]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆