【问题标题】:Javascript/Prototype Effect Parallel not working in IE10Javascript/原型效果并行在 IE10 中不起作用
【发布时间】:2013-08-23 11:07:08
【问题描述】:

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

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

没有控制台或js错误..

这是我的代码:

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)
});

谢谢大家!

【问题讨论】:

    标签: javascript internet-explorer slider prototypejs internet-explorer-10


    【解决方案1】:

    我认为这种效果不支持即 10,正如您在文档 http://madrobby.github.io/scriptaculous/effect-parallel/ 中看到的那样 此处的演示也没有在即 10 中显示效果。

    【讨论】:

      猜你喜欢
      • 2014-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-02
      • 2013-11-13
      • 2013-08-29
      • 1970-01-01
      相关资源
      最近更新 更多