The code is fine. Open up the console, and have a look: 
http://jsfiddle.net/yDLtB/

O.

On 3 May 2010, at 08:20, gasmor wrote:

> this is my html page:
> 
> <div id="pics_tumb">
>         <a rel="lightbox[123]" href="image1.jpg"><img
> src="image2.jpg" class="tumb_h" border="0" /></a>
>        <a rel="lightbox[123]" href="image3.jpg"><img src="image4.jpg"
> class="tumb_h" border="0" /></a>
> </div>
> 
> if i use alert is correct
> 
> all_pics.each(function(element) {
>    alert(element.get('src'));
> });
> 
> 
> 
> 
> 
> On May 2, 8:57 pm, Sanford Whiteman <[email protected]>
> wrote:
>>> Why this code not function if i use this definition of array
>>> "all_images"?
>> 
>> Your  JS  looks fine. Sounds like something is wrong with your markup.
>> Compare here:
>> 
>> http://mootools.net/shell/pEQwd/
>> 
>> -- Sandy

Reply via email to