Quantcast

Jump to content


Photo

plzzz help scriptaculous


  • Please log in to reply
No replies to this topic

#1 Noitidart

Noitidart
  • Neocodex Co-Founder

  • 23214 posts


Users Awards

Posted 08 August 2010 - 03:42 AM

I cant figure out how to do a queue with an interval in scriptaculous:


<html>
<head>
<script type="text/javascript" src="http://script.aculo.us/prototype.js"></script><script type="text/javascript" src="http://script.aculo.us/scriptaculous.js"></script>
</head>

<body>

<div id="d0" style="width:100px; height:50px; background-color:steelblue;"></div>
<br>
<div id="d1" style="width:100px; height:50px; background-color:steelblue;"></div>

<script>


new Effect.Move('d0',{x:100,duration:0.5,sync:true,queue:{scope:'noit'}});
new Effect.Move('d1',{x:100,duration:0.5,sync:true,queue:{scope:'noit'}});
var q = Effect.Queues.get('noit');
q.interval = 200;


</script>
</body>
</html>



I want just want d1 to start moving 200ms after d0 starts moving.
But i can start that queue >_<

if you take out sync:true then it just goes parallel :(


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users