Re: [Proto-Scripty] about event.findElement

2010-02-23 Thread green
Hi that's the CSS3 selection rule. You might google css selection rule for some references. For your specific case: "[]" defines the rule to match the element attribute; ^ before = means NOT. So that expression will pick up all element which "rel" attribute is not "lightbox" On Wed, Feb 24, 2010

[Proto-Scripty] about event.findElement

2010-02-23 Thread rocksoccer
Hi, I am new to js prototype. This may be a very easy question. In lightbox 2 (http://www.huddletogether.com/projects/lightbox2) code, I find the following code I cannot understand. Please help to explain it. var target = event.findElement('a[rel^=lightbox]') || event.findElement('area[rel^=ligh