在a.js文件中,我有一个名为
Move(coordinates,callback) {
//Move the cursor from point A to point B based on the coordinates as parameter
});
在b.js文件中,我调用了这个函数,因为我希望看到光标每隔30秒缓慢移动一次。这就是召唤。
for(i=0;i<6;i++)
{
setTimeout(Move(inputcordinates,events = {
//someevents
}),30000);
}
问题是,当页面加载时,函数正在执行,光标已经移动到该位置6次,延
在我的代码中,我有一个div,它在另一个div中,占据了页面的50%
<div id="mainContainer" class="mainContainer">
<div id="scroller" class="scrolling">
<!-- items here should make the div really long -->
</div>
</div>
我的类配置如下:
div.mainContainer{
widt