1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Getting proble in .hover()

Discussion in 'jQuery' started by amkeabhi123, Sep 14, 2012.

  1. #1
    Hello Friends
    I have use hover function then create problem is--
    when mouse hover the pop up show and hover out then pop up not show
    when again and again .hover function then my program in loop
    and again and again show mu pop up out and pop up hide .
    i want to only one popup show in .hover function , when user again and again .hover in my image,
    i want to show one pop up in again and again hover then hover complete then show again popup.
     
    amkeabhi123, Sep 14, 2012 IP
  2. yho_o

    yho_o Well-Known Member

    Messages:
    353
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    #2
    $('#myelement').hover( function{
        // do something when hover
    }, function(){
        // do something when mouse is away, probably revert the element to the original status
    });
    
    Code (markup):
     
    yho_o, Sep 14, 2012 IP