PDA

View Full Version : script.aculo.us Appear problem


jakie8
07-10-2009, 03:17 AM
I have a function execute on body load... For some reason, only two lines of the code will execute...

<script type="text/javascript">

function showBubbles(){
new Effect.Appear('bubble1', {duration:1.5, from:0.0, to:1.0});
new Effect.Appear('bubble2', {duration:1, from:0.0, to:1.0});
new Effect.Appear('bubble3', {duration:2 from:0.0, to:1.0});
new Effect.Appear('bubble4', {duration:1.2, from:0.0, to:1.0});
}

</script>

I have to have two of the four lines commented out in order for any of them to work. Any idea on why its doing this? Basically, its gonna fade in 4 different div's at different intervals, hence the different durations.