That's a terrible way of doing a swap image. That's adding a load of crap
into the actual HTML, most likely creating invalid xHTML and if that's the
author's solution then you might as well just use Dreamweaver as it will do
that for you. A better solution is to use seasoup's method, or one similar
to it:

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

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of howa
Sent: Sunday, November 30, 2008 10:46 PM
To: jQuery (English)
Subject: [jQuery] Re: Image rollover using jQuery


Maybe this:

http://code.google.com/p/jquery-swapimage/



On Nov 30, 5:14 pm, 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