Closed
Bug 40166
Opened 26 years ago
Closed 26 years ago
no update of images in navbar on mouseout
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: zeus, Assigned: jst)
References
()
Details
When you go to www.netcounter.de, you see that there is a yellow line with
pictures. When you go over them with the mouse, they change. But when the mouse
leaves the picture it doesn't change back.
I would like to have some feedback on the bugs I report. I tried to use the
search page, but can't find my bugs there or don't know how to find them. Could
someone help me?
Am I doing a correct bug report ? This, because I really wouldn't know what to
fill in at "Component"
Thanks in advance,
Edwin.
Comment 1•26 years ago
|
||
Confirmed with the 2000-05-22-08-M16 nightly binary on WinNT. Setting OS to All.
The mouseover navbar at http://www.netcounter.de/navbar.html operates
differently than any I've seen before... but then I'm no js whiz.
Could the problem here be that there is no set of
img1_d = new Image();
statements to go with the
img1 = new Image();
statements?
Edwin, if you are not familiar with bug reporting, it is better to use the
Bugzilla Helper at http://www.mozilla.org/quality/help/bug-form.html
-- it will guide you. As for feedback, you will get email every time a comment
is made on bugs you report. To search for those bugs, use the "My Bugs" link
at the bottom of any bugzilla show_bug.cgi page, or enter your name into the
second email section on http://bugzilla.mozilla.org/query.cgi.
Assignee: asadotzler → jst
Status: UNCONFIRMED → NEW
Component: Browser-General → DOM Level 0
Ever confirmed: true
OS: Linux → All
QA Contact: jelwell → desale
Summary: no update of images → no update of images in navbar on mouseout
| Assignee | ||
Comment 2•26 years ago
|
||
Sean, there are imgX_d=... on the page, if you look in LoadImages() there are
lines that look like this:
img1 = new Image(); img1.src = "..."; img1_d = new Image(); img1_d.src = "...";
I haven't studied this any closer yet so I don't know what the problem is yet...
Status: NEW → ASSIGNED
Comment 3•26 years ago
|
||
hmm...I've studied the code and I have *NO* idea what's wrong...for some reason
the function normalize() just isn't called...if you stick an alert() in the
onMouseOut it's called, but if you stick an alert() in the function, it never
appears...
| Assignee | ||
Comment 4•26 years ago
|
||
Ha! Found it, this is a rather interesting "problem". The reason this doesn't
work is that the page changes the images in the onmouseout handler on the links
that contain the images and it's done by calling "normalize(x); return true;"
(where x is the image number). Now, calling normalize in an event handler calls
the method in the scope of the element where the event handler is defined, this
walks up the scope chain looking for a "normalize" method, and it calls the
first one found, and since elements happen to have a method called "normalize"
(as defined in the DOM spec) it ends up calling the normalize method on the
element and returns.
The site needs to be fixed, mozilla does what it's supposed to do. One way of
solving this is to replace the calls to normalize with calls to
window.normalize, or renaming the normalize function (plus call sites) on the
page would work too...
Marking INVALID.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•