[jQuery] How to make a methode in jQuery
Sorry my question might be rather basic stuff but none of the
tutorials, sample code or API description helps me solving my
question.
I've a function cropImage which I'd like to use as a methode. What's
the correct syntax for
function cropImage () {
...
$(this).css ({width:w, height:h});
}
function resizeImage() {
$('img.picture:visible').cropImage());
}
$(window).bind('resize', resizeImage).trigger('resize');
Source is at http://www.orpatec.ch/index.php=gallery.php
O. Wyss