Is it just me? Or does the layout in that mooshell link squish the top two panels? OS X, Chrome && FireFox.
Pseudo's scare me. That's why I just check the parity of the keys. http://jsfiddle.net/Jm2Hb/22/light/ Maybe someone could tell me which is faster: (or maybe it's the same) a. collecting all the divs and then only manipulating every other b. only collecting every other div via a pseudo selector On Jun 6, 2:30 pm, Fábio M. Costa <[email protected]> wrote: > you could do: > > .divs:not(:first-child) > > -- > Fábio Miranda Costa > Solucione Sistemas > Engenheiro de interfaces > Twitter: fabiomirandahttp://solucione.info > > > > On Sun, Jun 6, 2010 at 5:21 PM, אריה גלזר <[email protected]> wrote: > > n+1 means every odd numbered element. i think you need to use > > :not(:first-child) but i'm not sure this is doable. > > but you can create a Pseudo selector: > > Selector.Pseudo['not-first'] = function(el){return > > el.getParent().firstChild!=el} > > > and then do :not-first > > > On Sun, Jun 6, 2010 at 10:28 PM, batman42ca <[email protected]> wrote: > > >> Am I missing something obvious or should I be able to use pseudo > >> selectors in $$ to skip the first element? > > >> I tried this: > >> (node ".divs" is a css class I placed in each div, I didn't mistake it > >> for a tag name) > > >> var a = $$(".divs:nth-child(n+1)"); > > >> But it doesn't work. I even tried > > >> var a = $$(".divs:nth-child(1n+1)"); > > >> Here's a mooshell demo:http://mootools.net/shell/jjcRS/ > > > -- > > Arieh Glazer > > אריה גלזר > > 052-5348-561 > > 5561
