• Resolved mhoney

    (@mhoney)


    Hello, I’m trying to open and close a popup on hover using this code

    but doesn’t open, just flickers, any help would be appreciated

    jQuery(".cell1").on('mouseover', function() {
        PUM.open(299);
    });
    jQuery(".cell1").on('mouseout', function() {
        PUM.close(299);
    });
    • This topic was modified 2 years, 3 months ago by mhoney.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kim L

    (@kimmyx)

    Hi @mhoney,

    Please try using the mouseenter event instead of mouseover and then mouseleave instead of mouseout.

    It should look something like this:

    jQuery(".cell1").on('mouseenter', function() {
        PUM.open(299);
    });
    jQuery(".cell1").on('mouseleave', function() {
        PUM.close(299);
    });

    Let us know if this works!

    Thread Starter mhoney

    (@mhoney)

    Hi @kimmyx sadly it doesn’t work, It keeps flickering, I guess it has to do with the overlay layer, it takes the focus out of the mouseenter, I can open it but can’t close when I stop hovering over the popup so I tried

    jQuery(".cell1").on('mouseenter', function() {
        PUM.open(299);
    });
    jQuery("#popmake-299").on('mouseleave', function() {
        PUM.close(299);
    });

    that seems to do the trick, Thanks!

    • This reply was modified 2 years, 3 months ago by mhoney.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Open Popup on hover’ is closed to new replies.