Closed
Bug 155110
Opened 22 years ago
Closed 22 years ago
[LAYER]Javascript Menu (using layers) fails.
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tracking
(Not tracked)
CLOSED
INVALID
People
(Reporter: thierry, Assigned: arun)
References
()
Details
http://www.sniff-em.com/menu.js
Hovering over the Menu should open Menu boxes based on layers, as described in
menu.js, this is not the case using Mozilla Build 2002062308
Comment 1•22 years ago
|
||
This site does not use W3C-compliant HTML and has no W3C codepath.
From http://www.sniff-em.com/menu.js:
function CreateLayer(text, id, t, l) {
if(document.layers)
{
var str="<LAYER ID=menu" + id + " TOP=" + t + " LEFT=" + l + "
onmouseover=\"occupied_menu[" + id + "]=1;\" onmouseout=\"Turn('" + id +
"',0);occupied_menu[" + id + "]=0;\" VISIBILITY=HIDE ZINDEX=15>" + text +
"</LAYER>";
document.write(str);
}
else if(document.all)
{
var strng="<div id=menu" + id + " style=\"z-index: 15; position:absolute;top:"
+ t + ";left:" + l + ";visibility:hidden;width:100;\"
onmouseover=\"occupied_menu[" + id + "]=1;\" onmouseout=\"Turn('" + id +
"',0);occupied_menu[" + id + "]=0;\">" + text + "</div>";
document.write(strng);
}
}
function Turn(id, mode) {
if(document.layers || document.all) {
if(mode)
eval("setTimeout(\"On(" + id + ", " + mode + ");\",100)");
else
eval("setTimeout(\"Off(" + id + ", " + mode + ");\",100)");
}
}
Note |document.layers| is a NN4.x-only proprietary feature,
and |document.all| is an IE-only feature.
Reassigning to Tech Evangelism component -
Assignee: rogerl → aruner
Component: JavaScript Engine → US Ecommerce
Product: Browser → Tech Evangelism
QA Contact: pschwartau → bclary
Summary: Javascript Menu (using layers) fails. → [LAYER]Javascript Menu (using layers) fails.
Version: other → unspecified
Comment 2•22 years ago
|
||
Thierry, I just noticed that you may be associated with the site.
The Evanglelism owners will know more, but I can refer you to at
least these two URLs on this subject:
http://www.mozilla.org/docs/web-developer/upgrade_2.html
http://devedge.netscape.com/evangelism/docs/articles/updating-dhtml-web-pages
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 3•22 years ago
|
||
Thank you :)
Reporter | ||
Comment 4•22 years ago
|
||
Invalid, site developers fault.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Updated•10 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•