yes Karl thanks for explanation.
Andrea

On Nov 15, 1:45 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi Andrea,
>
> It looks like you defined the variable inside the mouseover function,
> which forms a closure, so the mouseout function can't access it.
> Placing the var tip... line before the $('#icons_banner a').hover(...
> line ensures that both mouseover and mouseout can use it.
>
> Does that make sense?
>
> Cheers,
> --Karl
>
> On Nov 15, 2007, at 1:11 PM, [EMAIL PROTECTED] wrote:
>
>
>
> > Thank you Karl,
>
> > is working fine.
>
> > A question. here is the code I was trying to use.
> > What was wrong in that??
>
> >            $('#icons_banner a').hover(function(){
> >                    $this = $(this);
> >                    var tip = $(this).attr('title');
> >                    $this.attr({title:''});
> >                    $('img',$this).attr({alt:''});
> >                    $('#toolbanner_map p').html(tip);
> >            },function(){
> >                    $this.attr({title:tip});
> >                    $('img',$this).attr({alt:tip});
> >            });
>
> > Thanks
>
> > Andrea
>
> > On Nov 15, 11:10 am, tlphipps <[EMAIL PROTECTED]> wrote:
> >> You can have jquery set the title and alt attributes to blank strings
> >> in the document.ready
> >> Example:
> >> $("#someid_or_other_selector").attr("title", "").attr("alt","");
>
> >> On Nov 15, 10:41 am, "[EMAIL PROTECTED]"
> >> <[EMAIL PROTECTED]>
> >> wrote:
>
> >>> Hi,
>
> >>> I need to prevent the browsers ( All ) to show the title link and
> >>> the
> >>> alt message of img as tootltip.
> >>> The prevention must be made only on a particular link that wrap an
> >>> image.
>
> >>> Any suggestion?
>
> >>> Thanks
>
> >>> Andrea

Reply via email to