> How about the point mentioned by Dave about the _this (that i really
> should not use that because of some closure stuff)?

I took the liberty of re-working your code to use closures, instead of
_this. Also, it now works with multiple images (You can do:
$("img').iButton() and it'll work over all of them).

You can find the modified code here:
http://john.jquery.com/plugins/jButton.js

One quick item: You call your plugin jButton, but the method is named
iButton - did you mean to call it jButton? Maybe just .button() would
be sufficient.

--John

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to