SlideUp and SlideDown effects need a direct child of the primary element to use as a way to produce the clipping effect.
http://github.com/madrobby/scriptaculous/wikis/effect-slideup read the notes about halfway down. -- http://positionabsolute.net On Dec 30 2008, 3:34 pm, jeanluca <[email protected]> wrote: > Hi All > > checkout the following code example: > > <html> > <head> > <script type="text/JavaScript" src="/javascripts/ > prototype.js"></script> > <script type="text/JavaScript" src="/javascripts/ > scriptaculous.js"></script> > <script type="text/JavaScript" src="/javascripts/effects.js"></ > script> > > <script type="text/javascript"> > window.onload = function(){ > new Effect.SlideUp( 'abc' ) ; > new Effect.SlideDown( 'abc', {queue: 'end'}) ; > } > </script> > </head> > <body> > <div id='abc' style='height:100px; background-color:green;'> > TEST TEST TEST > </div> > </body> > </html> > > For some reason the effects don't work at all. I can only get this to > work when I add a <br> after the string 'TEST TEST TEST', which > doesn't sound right, does it?. Any suggest why this is happening ? and > how to solve it? > > thnx in advance > LuCa --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---
