Hi, Sorry, completely messed up my comments at the end there. Let's try that again:
<div id='foo' style="display: none">Blah blah blah</div> // Make 'foo' appear new Effect.BlindDown('foo'); // Make 'foo' disappear (later) new Effect.BlindUp('foo'); -- T.J. On May 29, 11:23 am, "T.J. Crowder" <t...@crowdersoftware.com> wrote: > Hi, > > > When the page loads, I want the tree to be completely collapsed. I > > tried setting the inline style for each div to "visibility: hidden", > > You want inline style "display: none". > > > but then Effect.Blindup would not cause the div to appear. I tried > > using javascript to walk the DOM tree and set each div to > > style.display = "none" > > You can do it with inline style, you don't have to do it with > JavaScript. Although if you want the page to be usable by people who > don't have JavaScript enabled, you may want to do it via script so > that without script, the blocks are shown by default. > > >, but again, BlindUp could not cause it to > > appear. > > BlindUp doesn't make things appear, it makes things disappear. You > want BlindDown to make things appear. > > <div id='foo' style="display: none">Blah blah blah</div> > > // Make 'foo' disappear > new Effect.BlindDown('foo'); > > // Make 'foo' reappear (later) > new Effect.BindUp('foo'); > > HTH, > -- > T.J. Crowder > tj / crowder software / com > Independent Software Engineer, consulting services available > > On May 28, 7:50 pm, lawpoop <lawp...@gmail.com> wrote: > > > Hello all - > > > I'm using scriptaculous' Effect.blindup and blinddown effect to create > > a tree menu. It's basicalled nested divs with indentation. > > > When the page loads, I want the tree to be completely collapsed. I > > tried setting the inline style for each div to "visibility: hidden", > > but then Effect.Blindup would not cause the div to appear. I tried > > using javascript to walk the DOM tree and set each div to > > style.display = "none", but again, BlindUp could not cause it to > > appear. > > > How can I default divs to not appear in a way that BlindUp will cause > > them to appear? > > --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---