Michael Satterwhite wrote:> I have a need to have an image on a page changed to an alternate image
> when the mouse passes over the image. Is there an easy way to do it with
> Rails?
>
> If this is really a css fix, what should I be looking at in css?
>
> Thanks in advance
> ---Michael
To me it will depend on the size of the image...
Big photo that you want to switch out with another big photo - maybe
AJAX request or something, a''la Flickr.
Small gif/jpg/png image, like a menu bar or basic highlight or something
- CSS all the way... see this article for details:
http://wellstyled.com/css-nopreload-rollovers.html
c.
--
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
-~----------~----~----~----~------~----~------~--~---