Closed Bug 141108 Opened 23 years ago Closed 14 years ago

cultdeadcow.com - [document.layer] js menu does not expand

Categories

(Tech Evangelism Graveyard :: English US, defect)

x86
Windows 98
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mageben, Unassigned)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc1) Gecko/20020417 BuildID: 2002041711 In exploreror and Opera the green arrow opens up to a pulldown menu when clicked. in Mozilla it does not. Reproducible: Always Steps to Reproduce: 1.Goto www.cultdeadcow.com 2.click on rightmost green arrow 3.watch as nothing happens Actual Results: nothing happened Expected Results: a menu should have appeared This Script did not activate correctly <script LANGUAGE="javascript"> <!-- function swapImgRestore() { if (document.swapImgData != null) for (var i=0; i<(document.swapImgData.length-1); i+=2) document.swapImgData[i].src = document.swapImgData[i+1]; } function swapImage() { var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.swapImgData; for (i=0; i < (swapImage.arguments.length-2); i+=3) { objStr = swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1]; if ((objStr.indexOf('document.layers[')==0 && document.layers==null) || (objStr.indexOf('document.all[') ==0 && document.all ==null)) objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length); obj = eval(objStr); if (obj != null) { swapArray[j++] = obj; swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j]; obj.src = swapImage.arguments[i+2]; } } document.swapImgData = swapArray; //used for restore } function showHideLayers() { var i, visStr, args, theObj; args = showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) { visStr = args[i+2]; if (navigator.appName == 'Netscape' && document.layers != null) { theObj = eval(args[i]); if (theObj) theObj.visibility = visStr; } else if (document.all != null) { if (visStr == 'show') visStr = 'visible'; if (visStr == 'hide') visStr = 'hidden'; theObj = eval(args[i+1]); if (theObj) theObj.style.visibility = visStr; } } } function preloadImages() { if (document.images) { var imgFiles = preloadImages.arguments; if (document.preloadArray==null) document.preloadArray = new Array(); var i = document.preloadArray.length; with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#") { preloadArray[i] = new Image; preloadArray[i++].src = imgFiles[j]; } } } function close_menu() { NS4 = (document.layers) ? 1 : 0; IE4 = (document.all) ? 1 : 0; if (NS4) { document.layers['submenu'].visibility = "hide"; } else { document.all['submenu'].style.visibility = "hidden"; } } function preload() { preloadImages('/beta/images/menu1on.gif'); preloadImages('/beta/images/menu1off.gif'); preloadImages('/beta/images/menu2on.gif'); preloadImages('/beta/images/menu2off.gif'); preloadImages('/beta/images/menu3on.gif'); preloadImages('/beta/images/menu3off.gif'); preloadImages('/beta/images/menu4on.gif'); preloadImages('/beta/images/menu4off.gif'); preloadImages('/beta/images/menu5on.gif'); preloadImages('/beta/images/menu5off.gif'); preloadImages('/beta/images/menu6on.gif'); preloadImages('/beta/images/menu6off.gif'); preloadImages('/beta/images/menu7on.gif'); preloadImages('/beta/images/menu7off.gif'); preloadImages('/beta/images/menu8on.gif'); preloadImages('/beta/images/menu8off.gif'); preloadImages('/beta/images/menu9on.gif'); preloadImages('/beta/images/menu9off.gif'); preloadImages('/beta/images/menu10on.gif'); preloadImages('/beta/images/menu10off.gif'); preloadImages('/beta/images/menu11on.gif'); preloadImages('/beta/images/menu11off.gif'); preloadImages('/beta/images/menu12on.gif'); preloadImages('/beta/images/menu12off.gif'); preloadImages('/beta/images/menu13on.gif'); preloadImages('/beta/images/menu13off.gif'); } //--> </SCRIPT>
Given <a onMouseOver="showHideLayers(..."> and function showHideLayers() { //... if (navigator.appName == 'Netscape' && document.layers != null) { // do something } else if (document.all != null) { // do something else } // otherwise, do nothing } then this is functioning as designed. -> tech evang
Severity: major → minor
Status: UNCONFIRMED → NEW
Component: JavaScript Console → US General
Ever confirmed: true
Product: Browser → Tech Evangelism
Version: other → unspecified
.
Assignee: hewitt → doron
QA Contact: jrgm → zach
Summary: Java? or PHP Menu Does not expand → [document.layer] js menu does not expand
Summary: [document.layer] js menu does not expand → cultdeadcow.com - [document.layer] js menu does not expand
tech evang june 2003 reorg
Assignee: doron → english-us
QA Contact: zach → english-us
The site had been completely re-designed and it's now WFM with Firefox 4 beta8 on Windows 7. Marking as FIXED.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.