[WTH] $5 Quick Fix - Javascript on mouse over popup - less than 5 minutes fix!!!

Discussion in 'Programming' started by WeX09, May 18, 2012.

  1. #1
    I need help fixing this issue.

    The page can be found here: http://www.apadirect.com/working/promotional-products-new.php

    Mouse over the product block and then, mouse over on the quick view image and mouse out. The popup doesn't close.
    1. I NEED This Fix

    Mouse over the quick view of the first product (Item # 10407) and see the bigger image; it is too far right.
    2. I NEED This Fix

    Move the mouse from left to right (or vice versa) on the 4 products in the same row. See that horizontal position is variable. I want make this fixed in the center. NOTE: Only the horizontal position (from left to right).
    3. I NEED This Fix

    PM me if you can fix this.

    Thank you.
     
    WeX09, May 18, 2012 IP
  2. yho_o

    yho_o Well-Known Member

    Messages:
    354
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    try opening 'scripts/image_popup.js'

    replace this:

    
    function image_hide(id)
    {
        $("#qv_" + id).css('visibility', 'hidden');
    //    document.getElementById(id).style.visibility='hidden';
    }
    
    Code (markup):
    with this:

    function image_hide(id)
    {
        $("#qv_" + id).css('display', 'none');
    //    document.getElementById(id).style.visibility='hidden';
    }
    
    Code (markup):
     
    yho_o, May 18, 2012 IP
  3. WeX09

    WeX09 Member

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Thank you but that doesn't work.
     
    WeX09, May 19, 2012 IP
  4. yho_o

    yho_o Well-Known Member

    Messages:
    354
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    yup i expected that ^^

    try to make it with jquery only, you're using nested jquery/javascript thats why i didnt scan your full code

    if you do it with jquery it will be much easier and less coding

    Thanks
     
    yho_o, May 19, 2012 IP
  5. WeX09

    WeX09 Member

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    I'd love to do that but the problem is I don't know how. That's why I'm looking for help. If someone wants to take it, I'm ok.
    Thanks
     
    WeX09, May 19, 2012 IP
  6. yho_o

    yho_o Well-Known Member

    Messages:
    354
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    yho_o, May 19, 2012 IP
  7. makebillions2009

    makebillions2009 Greenhorn

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Please change your image_popup.js file code. then see the two different output. its working i tested. you can use any one method.


    method:1

    function image_hide(id)
    {
    $("#qv_" + id).css('visibility', 'hidden');
    tipobj.style.visibility="";
    enabletip=false
    //document.getElementById(id).style.visibility='hidden';
    }


    method:2

    function image_hide(id)
    {
    $("#qv_" + id).css('visibility', 'hidden');
    enabletip=false
    //document.getElementById(id).style.visibility='hidden';
    }
     
    makebillions2009, May 25, 2012 IP
  8. WeX09

    WeX09 Member

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    Issue 1 is FIXED. 2 and 3 still present.

    makebillios2009, let me know if you want try in these issues too. Let me know
     
    WeX09, May 28, 2012 IP