« Return to Thread: submit_to_remote with image

Re: submit_to_remote with image

by Adam Akhtar-2 :: Rate this Message:

Reply to Author | View in Thread


Janna,

image_submit_tag has a nasty effect of not applying rollover but I got
it to work by calling javascript directly:

<%= image_submit_tag('/images/your_main_image.jpg',
            :title => "Search",
            :class => "btnsearch",
            :onmouseover =>
"this.src='/images/your_rollover_image.jpg'",
            :onmouseout => "this.src='/images/your_main_image.jpg'") %>

--
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@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: submit_to_remote with image