I just wrote something like that for a friend. It assumes that your images
are named like so:
 
test_off.jpg // the off state
test_on.jpg // the hover state
 
Just put a class of "ro" on any img tag and you're golden
 
<a href="somelink.html"><img src="images/test_up.jpg" alt="testing"
width="200" height="200" class="ro" border="0" /></a>
 
$(document).ready(function(){
 
    $('img.ro').hover(function(){
        img = $(this);
        curImg = $(this).attr('src');
        rplImg = curImg.replace('_off','_on');
        $(this).attr('src',rplImg);
    },function(){
        $(img).attr('src',curImg);
    })
 
 });
 

  _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Glen Lipka
Sent: Thursday, September 06, 2007 12:23 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Image rollover plugin?


Could you be a little more specific?
Maybe show a page that has the kind of effect you are looking for? 

I think the answer is Yes, but you need to be more specific, there are alot
of different variations.
You may not need a plugin at all.

Glen


On 9/6/07, howa <[EMAIL PROTECTED]> wrote: 


Something like what dreamweaver provide, are there such as plugin in
jQuery?

Thanks.




Reply via email to