Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-13-2012, 01:58 PM   PM User | #1
topdown.me
New Coder

 
Join Date: Jul 2011
Posts: 31
Thanks: 2
Thanked 0 Times in 0 Posts
topdown.me is an unknown quantity at this point
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?
__________________
League of Legends
topdown.me is offline   Reply With Quote
Old 11-13-2012, 04:32 PM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
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
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users

Last edited by DanInMa; 11-13-2012 at 04:34 PM..
DanInMa is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:57 PM.


Advertisement
Log in to turn off these ads.