hello all
I am trying to use simple visual effects on a site I''m building. A
very simple one like this works just fine:
<code>
function scroll() {
new Effect.Fade(''six'', { duration: 3.0 });
new Effect.SlideDown(''seven'', { queue:
''end'', duration: 6.0 });
new Effect.Fade(''seven'', { queue: ''end'',
duration: 6.0 });
new Effect.BlindDown(''six'', { queue: ''end'',
duration: 6.0 });
}
new PeriodicalExecuter(scroll, 30);
</code>
But something like this fails:
<code>
function scroll() {
//Book Discussion
new Effect.Fade(''six'', {queue: {position:
''front'', scope: ''books''},
duration: 3.0});
new Effect.SlideDown(''seven'', {queue: {position:
''end'', scope:
''books''}, duration: 3.0});
new Effect.Fade(''seven'', {queue: {position:
''end'', scope: ''books''},
duration: 3.0});
new Effect.BlindDown(''six'', {queue: {position:
''end'', scope: ''books''},
duration: 3.0});
//Center Events
new Effect.Fade(''nine'', {queue: {position:
''front'', scope: ''center''},
duration: 3.0});
new Effect.Appear(''ten'', {queue: {position:
''end'', scope: ''center''},
duration: 3.0});
new Effect.Fade(''ten'', {queue: {position:
''end'', scope: ''center''},
duration: 3.0});
new Effect.Appear(''eleven'', {queue: {position:
''end'', scope:
''center''}, duration: 3.0});
new Effect.Fade(''eleven'', {queue: {position:
''end'', scope: ''center''},
duration: 3.0});
new Effect.Appear(''nine'', {queue: {position:
''end'', scope: ''center''},
duration: 3.0});
}
new PeriodicalExecuter(scroll, 30);
</code>
I think it''s a syntax issue, but I could be wrong.
TIA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---