Michael Slater wrote:> The image_submit_button helper makes it easy enough to use images as
> submit buttons, but they don''t have any rollover effects.
I''ve seen
> various JS approaches to make this work, but I''m wondering if
there''s
> a preferred Rails way to do this.
>
> Has anyone seen a replacement for image_submit_button that takes two
> (or three) images instead of one, and creates the rollover code?
>
> Michael
This is the "rails" aproach...
<%= image_submit_tag "btn-off.jpg", :mouseover =>
"btn-on.jpg"%>
:)
Regards
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---