plugin?  How about the native .hover?

$('img').hover(function() {
  $(this).attr('src',path + '' + $('this).attr('id') + '_over.gif';
},
function() {
  $(this).attr('src',path + '' + $('this).attr('id') + '_off.gif';
});

That will make every image on the page a rollover, changing the src of
the image to the id + "_over.gif" or "_off.gif" of the image in
whatever directory you have defined path to be.  Instead of using the
ID you could look at the src of the image and add '_over just in front
of the .gif and take it out for the other hover.  However you want to
do it.  Then change the selector to be whatever group of images you
want to have rollovers.  Maybe $('img.rollover') which would be all
images with the class rollover.


On Nov 30, 1:14 am, Ray M <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Are there any existing jQuery plugin which can provide similar image
> rollover functions such as the one provided by Dreamweaver?
>
> Thanks.
>
> Ray

Reply via email to