Hi!
I found this neat little script (http://vandev.com/#article_2562 -
with some minor modification it is functioning in all browsers) in the
net and I was wondering if it is possible to do the same effect with
prototype and scriptaculous.
I tried a lot but I didn''t managed it (frustrating).
Would be great If someone has a hint for me. Here is my code:
Event.observe(window, ''load'', function() {
Event.observe(window, ''scroll'', function() {
var position = Position.page(element_id);
var top = position[1];
window.setTimeout(function(top, obj) {
new Effect.Move(obj, { x:0, y:-top, duration:1,
transition:Effect.Transitions.sinoidal })
}, 1250, top, $(element_id));
})
});
Regards,
Stefan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---