Results 1 to 3 of 3

Thread: [RESOLVED] URGENT! JavaScript ToolTip Doesn't Work Right in FireFox

  1. #1
    Join Date
    Aug 2006

    resolved [RESOLVED] URGENT! JavaScript ToolTip Doesn't Work Right in FireFox

    Hey guys,

    I have some code that renders tooltips that I picked up off the web. It works beautifully in all versions of IE but I am having a problem with it in FireFox. The code is designed to show a tooltip just beside the mouse tip, however in FireFox, the tooltip always goes to the very top left corner of the page.

    I really need to make this page compatible with both IE and FireFox. If any of you have any suggestions on what I can do to make it work in FireFox as it does in IE I would be extremely grateful. Right now, I am not even sure the reason why it behaves so differently in FireFox so I am having some difficulty working up a solution.

    To view the page/code please go to the following URL:

    Any comments or suggestions would be welcome. I am pretty desperate to find a solution to this seemingly simple problem.

    Thanks in advance!

  2. #2
    Join Date
    Jun 2004
    Portsmouth UK
    function update_tip_pos(){
    		document.getElementById('ToolTip').style.left = (mouse_X + 5)+'px';
    		document.getElementById('ToolTip').style.top  = (mouse_Y)+'px';

    God loves you and will never love you less.

    If my post has been useful please donate to http://www.operationsmile.org.uk/

  3. #3
    Join Date
    Aug 2006

    Problem solved! Disaster averted...

    Thanks Vic! You are the bomb! That worked perfectly.

    I had a feeling it was something simple.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles