Image swap on rollover

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

Michael S. 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

c.

On 15 Nov 2006, at 17:42, Michael S. 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?

This example should help (it’s part of a css design i had to do for
an ad agency, so there are quite a few superfluous image files in
there).


I can recommend the book CSS Mastery (http://www.cssmastery.com/), it
has all these cases nicely explained (including the fancy rollovers
you see on flickr).

Best regards

Peter De Berdt

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs