Hi,Mike
    I guess you should call your changeOnClick function after ($
('div_that_contatin_the_img').show();
The Dom couldn't detect the img when its containing div was in a
display:none style,maybe.
Try to modify your code and have a try .
   U can try this:
   ($('div_that_contatin_the_img').show();
   $('avviso-img').onclick=myfunc2;

   Vincent.

On 4月4日, 下午9时40分, "zio budda" <[EMAIL PROTECTED]> wrote:
> 2007/4/4, Christophe Porteneuve <[EMAIL PROTECTED]>:
>
>
>
> > Hey Michel,
>
> Hi Cris
>
> 1) When do you call changeOnClick ?
>
> Before  ($('div_that_contatin_the_img').show();
>
> 2) Are you certain that at the time of call, your <img> is in the DOM?
>
> Yes. It  is in the page template. Only in display:hide "style"
>
> > 3) Are you certain you didn't mistype the ID either in the <img> or in
> > your script?
>
> Yes. c&p from page template to my script.
>
> Tnx in advance  for all.
>
> --
> Michel 'ZioBudda' Morelli                       [EMAIL PROTECTED]
> Consulenza sistemistica in ambito OpenSource.
> Sviluppo applicazioni web dinamiche (LAMP+Ajax)
> Telefono: +39-3939890025 --  Fax: +39-0291390660
>
> http://www.ziobudda.net                         ICQ: 
> 58351764http://www.ziobuddalabs.it                     Skype: 
> zio_buddahttp://www.ajaxblog.it                         MSN: [EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to