Hi Nico,

I just got finished updating the script. You hit the nail on the  
head, but I fixed it in a slightly different way. I updated the  
examples page accordingly.

Thanks,

Michael

On Jan 25, 2008, at 10:24 PM, Andronicus Riyono wrote:

>
> On Jan 26, 2008 4:33 AM, Rick Faircloth <[EMAIL PROTECTED]>  
> wrote:
>> ...
>> As soon as I changed it to a normal text link, it worked perfectly!
>> ...
>
> I was trying to use shadowbox on image link like:
>
> <a href="images/large/39884_2.jpg" rel="shadowbox"><img width="140"
> src="images/thumb/39884_2.jpg"/></a>
>
> and can't get it right, until,
>
> I changed the shadowbox-jquery.js, line 99 (from the src one) from:
>
> return e.target;
>
> to
>
> return e.srcElement || e.currentTarget || e.target;
>
>
> Because shadowbox was looking for href attribute in the img element.
>
> Hope this helps people with similar problem.
>
> Regards,
> Nico
>
> -- 
> ---------------------------------------------
>  There's nothing impossible for an open mind
> ---------------------------------------------

Reply via email to