That's not really an "effect", per-se, as much as a simple continuous
motion. It's simple enough to do this without scriptaculous:

//assumes "myelement" is positioned absolutely
var moveIt = function(){
  var pos = parseInt($('myelement').getStyle("top").gsub(/[^\d]/,""));
  pos = (pos + 1) + "px";
  $('myelement').setStyle({ top: pos});
}
new PeriodicalExecuter(moveIt,0.1);

That's it :) Voila, nice scolling element. Replace "myelement" with "header"
and you can run that script on the script.aculo.us homepage.


On Fri, Nov 28, 2008 at 11:43 AM, Fernando Mertins <
[EMAIL PROTECTED]> wrote:

> Hi Everybody,
>
> Is it possible to create a "viewport" with moving an image in vertical,
> with Scriptaculous? Something like this:
> http://adamssleep.com.br/newsite/ (made with Flash)
>
> OBS.: I don't need the curve, only normal rectangle image
>
> Another example is the GUCCI website, but in this case the movement it's at
> horizontal and the used Scriptaculous :-)
>
> Which effects I must use?
>
> Thank you in advance,
> Fernando
>
> >
>


-- 
Jerod Venema
Frozen Mountain Software
http://www.frozenmountain.com/
919-368-5105

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to