Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

আরও জানুন

what changed with the mousemove event, doesn'y work w/FF7

  • 3 উত্তরসমূহ
  • 1 এই সমস্যাটি আছে
  • 43 দেখুন
  • শেষ জবাব দ্বারা knorretje

more options

The code below was broken by the FF7 update. When you click on the image moving the mouse should scan across the enlarged image. Problem happens with Windows 7 as well.

The code below was broken by the FF7 update. When you click on the image moving the mouse should scan across the enlarged image. Problem happens with Windows 7 as well.

All Replies (3)

more options

The Tools > Error Console show error about parsing the value of top an left, so something else is wrong.

A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25

more options

xPos=(ev.pageX-PhotoSm.x)/PhotoSm.width;
yPos=(ev.pageY-PhotoSm.y)/PhotoSm.height;
I noticed that:
PhotoSm.x and PhotoSm.y have a value of undefined, so xPos and yPos become NaN (not a number).
In the documentation it says: The HTMLImageElement x and y properties have been removed.
https://developer.mozilla.org/en/Firefox_7_for_developers
So maybe that is the reason that it's broken.

more options

I have tried this on my own computer. It do not know about older versions but it seems to work in Firefox 7 when you use the same code for xPos and yPos in Firefox as in IE. I get some kind of magnifier effect.

if (navigator.appName.indexOf("Microsoft") > -1)
{
ev=event;
}
xPos=(ev.clientX+document.body.scrollLeft-targetLeft)/PhotoSm.width;
yPos=(ev.clientY+document.body.scrollTop-targetTop)/PhotoSm.height;