Re: Effect.Appear

Nicolás Sanguinetti
Thu, 20 Dec 2007 17:33:06 -0000

I''m not really sure you can change the opacity of the body and be
assured it will work in all browsers, so, one way to do it is place a
div in the body that takes the entire width and height of the body.







And in the CSS (not sure if it will work out of the box, but it should)

#page_container {
  width: 100%;
  height: 100%;
}

And *there are* other ways of running stuff when the page loads :)

In your javascript file

Event.observe(window, ''load'', function() {
  new Effect.Appear(''page_container'');
});

Best,
-Nicolas

On Dec 20, 2007 2:42 PM, pigfox666-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
<pigfox666-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
> I''m trying to have the entire page be loaded smoothly as done by
> Effect.Appear.
> The only way to launch a javascript on load is <body onload="new
> Effect.Appear();"> but this does not involve a div.
> Does anyone know how to have the entire page be affected by
> Effect.Appear on load?
> >