Closed Bug 155110 Opened 22 years ago Closed 22 years ago

[LAYER]Javascript Menu (using layers) fails.

Categories

(Tech Evangelism Graveyard :: English US, defect)

x86
Windows 98
defect
Not set
normal

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
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
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
Thank you :)
Invalid, site developers fault.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Hmm, I close it to be sure.
Status: RESOLVED → CLOSED
tech evang june 2003 reorg
Component: US Ecommerce → English US
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.