Javascript / Prototype Effect并行在IE10中不起作用 [英] Javascript/Prototype Effect Parallel not working in IE10

查看:142
本文介绍了Javascript / Prototype Effect并行在IE10中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IE10中遇到了我的JS问题(IE7-9工作正常)

I am having trouble with my JS in IE10 (IE7-9 works "fine")

我有一个带淡化/出现过渡效果的滑块。当滑动到下一张图片时,当前的图片淡出,而下一张图片则淡入。问题是,IE10没有效果,它只隐藏当前的一张并显示下一张(但是之间的延迟)单击下一个按钮,下一个图片的显示等于其他浏览器的效果持续时间,所以它确实做了一些事情..)

I have a slider with a fade/appear transition effect. When sliding to the next picture, the current one is faded out, while the next one is faded in. Problem is, that IE10 doesn't do the effect, it only hides the current one and shows the next one (but the delay between clicking the Next button and the showing of the next picture equals the duration of the effect on other browsers, so it does do something..)

没有控制台或js错误..

There are no console or js errors..

这是我的代码:

var effects = new Array();

effects.push(new Effect.Fade(this.previous, {
    sync: true
}));

effects.push(new Effect.Appear(this.current, {
    sync: true
}));

this.scrolling = new Effect.Parallel(effects, {
    duration: this.options.duration,
    afterFinish: (function() {
        if (this.controls) {
            this.activateControls();
        }
        if (this.options.afterMove && (typeof this.options.afterMove == 'function')) {
            this.options.afterMove();
        }
    }).bind(this)
});

谢谢大家!

推荐答案

我不认为这种效果支持即10,你可以在文档中看到 http://madrobby.github.io/scriptaculous/effect-parallel/ 这里的
demo也没有显示效果,即10。

i don't think this effect supports i.e 10 as you can see in documentation http://madrobby.github.io/scriptaculous/effect-parallel/ demo here is also not showing effect in i.e 10.

这篇关于Javascript / Prototype Effect并行在IE10中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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