作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个问题,我想先淡化图像的不透明度,然后才将此图像移动到页面的最右侧。然而,Mootools 总是同时而不是顺序地执行这两个操作。
<script type="text/javascript" src="mootools-core-1.3.2-full-compat.js"></script>
<script type="text/javascript">
window.addEvents({
"load" : function() {
$$('.picture').getLast().setStyle('opacity', 0);
var show = new Fx.Tween($$('.picture').getLast(), {
property: 'opacity',
duration: '2500'
});
show.start(1);
alert($$('.picture').getLast().getStyle('opacity'));
var movePicture = new Fx.Tween($$('.picture').getLast(), {
property : 'margin-left',
duration : '2500'
});
while($$('.picture').getLast().getStyle('opacity')!= 1){}
movePicture.start(700);
},
"domready" : function() {
/* do something */
function wait(msecs){
var strt = new Date().getTime();
var cur = strt
while(cur - strt < msecs){
cur = new Date().getTime();
if((cur-strt)%100==0)
alert(cur-strt);
}
}
}
});
</script>
我想执行 show.start(1),完成后执行 movePicture.start(700)。
提前致谢!
最佳答案
关于javascript - 在 Mootools 中顺序执行两个补间 Action ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21671488/
根据 Android docs ,activity生命周期如下: onCreate() onStart() onResume() onPause() onStop() onDestroy() 问题是,
我有一门类(class)有很多专栏,但这个问题只需要其中三个: ---------------------------------------- | start_date | start_time
给定在同一个 Tomcat 6 上运行的两个 Web 应用程序。如果您从一个应用程序到另一个应用程序进行 http 调用,Tomcat 是否会“短路”此调用,或者它会在调用之前一直在 interweb
我是一名优秀的程序员,十分优秀!