CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   Tooltip in bad position (http://www.codingforums.com/showthread.php?t=282092)

topdown.me 11-13-2012 01:58 PM

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?

DanInMa 11-13-2012 04:32 PM

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


All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.