On 8/14/07, Joel Birch <[EMAIL PROTECTED]> wrote:
>
> jQuery.fn.hover_menu = function(offset, speed){
> this.find('<li>').each(function(){ // 'this' is already a jQuery object
> (the one you attach the plugin to)
> var current_margin = $(this).css('marginLeft'); // 'this' needs to
> be wrapped in a new jQuery object
> });
>
> Joel Birch
Sorry, ('<li>') should be ('li'), so:
jQuery.fn.hover_menu = function(offset, speed){
this.find('li').each(function(){ // 'this' is already a jQuery object
(the one you attach the plugin to)
var current_margin = $(this).css('marginLeft'); // 'this' needs to
be wrapped in a new jQuery object
});