Results 1 to 3 of 3

Thread: Easy Slider Jquery problem

  1. #1
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Easy Slider Jquery problem

    I have a problem , i am using easy Slider 1.7 and i have a problem on Pause Hover the element . THe pause hover works , but not as i want it to . As you can see in this example at the top of the page programator php , the slider pause on mouse hover , for example hover the image or the text , but if i move it from the element (say text) to the image element. it plays the next slide even i am in the slider . i want it when hover any element in the slider to stay paused .
    Last edited by razvypp; 01-25-2012 at 02:36 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's a common problem with mouseover/out actions. They often fire too frequently to be of any use in predicting where the mouse actually is. jQuery has mouseenter/leave that often overcome this problem. So the first thing I'd try is, near the end of the easySlider script file where it has:

    Code:
    			if(options.hoverpause && options.auto){
                    $(this).mouseover(function(){
                        clearTimeout(timeout);                  
                    }).mouseout(function(){
                      animate("next",false);
                    })
                }
    Change that to:

    Code:
    			if(options.hoverpause && options.auto){
                    $(this).mouseenter(function(){
                        clearTimeout(timeout);                  
                    }).mouseleave(function(){
                      animate("next",false);
                    })
                }
    The browser cache may need to be cleared and/or the page refreshed to see changes.

    If that doesn't fix it, leave it in place so I can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It works like a charm , thank you very much .

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •