cvs: phpweb /include shared.inc

From: Date: Tue, 12 Dec 2000 02:09:41 +0000
Subject: cvs: phpweb /include shared.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-3070@lists.php.net to get a copy of this message
jimw Mon Dec 11 18:09:41 2000 EDT Modified files: /phpweb/include shared.inc Log: this should make the popups be mozilla-friendly. hope this doesn't break things for anything else. Index: phpweb/include/shared.inc diff -u phpweb/include/shared.inc:1.113 phpweb/include/shared.inc:1.114 --- phpweb/include/shared.inc:1.113 Sun Nov 5 15:36:16 2000 +++ phpweb/include/shared.inc Mon Dec 11 18:09:41 2000 @@ -376,6 +376,7 @@ NS4 = (document.layers) ? 1 : 0; IE4 = (document.all) ? 1 : 0; +DOM = (document.getElementById) ? 1 : 0; ver4 = (NS4 || IE4) ? 1 : 0; function moveLayers() { @@ -390,7 +391,16 @@ document.layers['qrefKick'].top = 80; document.layers['searchKick'].left = screenWidth-350; document.layers['searchKick'].top = 36; - } else { + } else if (DOM) { +<? if ($FRAMEMODE!="manual"): ?> + document.getElementById('mirrorsKick').style.pixelLeft = 140; + document.getElementById('mirrorsKick').style.pixelTop = 215; +<? endif; ?> + document.getElementById('qrefKick').style.pixelLeft = 140; + document.getElementById('qrefKick').style.pixelTop = 80; + document.getElementById('searchKick').style.pixelLeft = screenWidth-350; + document.getElementById('searchKick').style.pixelTop = 36; + } else { screenWidth = document.body.clientWidth + 18; <? if ($FRAMEMODE!="manual"): ?> document.all['mirrorsKick'].style.pixelLeft = 140; @@ -410,12 +420,16 @@ moveLayers(); if (NS4) { document.layers[menuName].visibility = "show"; - } else { + } else if (DOM) { + document.getElementById(menuName).style.visibility = "visible"; + } else { document.all[menuName].style.visibility = "visible"; } } else { if (NS4) { document.layers[menuName].visibility = "hide"; + } else if (DOM) { + document.getElementById(menuName).style.visibility = "hidden"; } else { document.all[menuName].style.visibility = "hidden"; }

« previous php.mirrors (#3070) next »