$(''was_helpfull'').visualEffect(''fade'', {
afterFinish: function() {
$(''thanks'').visualEffect(''appear'');
}
);
and
<div id="was_helpfull">...</div>
<div id="thanks" style="display:
none;">...</div>
Should do it
On 11/26/06, iainwall-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
<iainwall-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi,
>
> I am a complete newbie to JavaScript, but for my site, I would love to
> have a "was this helpful?" button, that when clciked would fade
out and
> be replaced by another image, saying "thanks for your vote!"
>
>
> Anybody have any ideas?
>
>
>
> You help is appreciatted, and thanks in advance!
>
> Iain
>
>
> >
>
--
burnfield.com/martin
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---