Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2011
    Posts
    52
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Tooltip in bad position

    Hello. My tooltip is working good, Unless I'm visiting a specific page in my website.
    In this specific page, I have this code:

    Code:
    <script type="text/javascript" language="javascript">
    // Kick off the jQuery with the document ready function on page load
    $(document).ready(function(){
          imagePreview();
    });
    // Configuration of the x and y offsets
    this.imagePreview = function(){
                xOffset = 500;
                yOffset = -300;
    };
    </script>
    In order to show image preview better.

    But as soon as this code in, my tooltip is going to this position too.

    How I can fix that?
    Need domain? Buy Cheap Domain at Rapid Host :)

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    Im not even sure how that's working, because this.imagePreview has no parent so "this" isnt part of any object that i can see ( I suppose it refers to the document itself in this syntax, and in that case you appear to be redifining imagePreview).

    that aside, you probably need to show us the previewimage functions
    Last edited by DanInMa; 11-13-2012 at 05:34 PM.


  •  

    Posting Permissions

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