Javascript/Prototype Effect Parallel not working in IE10(Javascript/原型效果并行在 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)
});
谢谢大家!
推荐答案
我不认为这个效果支持 ie 10,你可以在文档中看到 http://madrobby.github.io/scriptaculous/effect-parallel/此处的演示也没有在即 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/原型效果并行在 IE10 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Javascript/原型效果并行在 IE10 中不起作用
基础教程推荐
- Karma-Jasmine:如何正确监视 Modal? 2022-01-01
- 动态更新多个选择框 2022-01-01
- 在 JS 中获取客户端时区(不是 GMT 偏移量) 2022-01-01
- 当用户滚动离开时如何暂停 youtube 嵌入 2022-01-01
- 我什么时候应该在导入时使用方括号 2022-01-01
- 响应更改 div 大小保持纵横比 2022-01-01
- 悬停时滑动输入并停留几秒钟 2022-01-01
- 在for循环中使用setTimeout 2022-01-01
- 角度Apollo设置WatchQuery结果为可用变量 2022-01-01
- 有没有办法使用OpenLayers更改OpenStreetMap中某些要素 2022-09-06