As the documentation (http://wiki.script.aculo.us/scriptaculous/show/Effect.Appear) states:
"Effect.Appear Make an element appear. If the element was previously set to display:none; inside the style attribute of the element, the effect will automatically show the element. This means that it must be places under the style attribute of an object, and not in the CSS in the head of the document or a linked file." So no, you don't do anything wromng, but I agree, it would be rather nice not having to add that attribute. /Glenn On 6/7/06, Bryce Fischer <[EMAIL PROTECTED]> wrote:
The following works: <body> <a href="#" onclick="new Effect.Appear($('mydiv'));">Click to display</a> <div class="example" id="mydiv" style="display: none;"> <h1>My Div</h1> </div> </body> (style is inline) but the following does not: <head> ... <style> #mydiv { display: none; } </style> </head> <body> <body> <a href="#" onclick="new Effect.Appear($('mydiv'));">Click to display</a> <div id="mydiv"> <h1>My Div</h1> </div> </body> Am I doing something wrong? _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs