1 // PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/
3 function scanChildren(element)
4 {
5 var counter = element.childNodes.length;
6 for (var i=0; i<counter; i++) {
7 foobar = element.childNodes.item(i);
8 if ( ( (Konqueror22 || Konqueror30 || Konqueror31) &&
9 ( foobar.nodeName == 'INPUT' || foobar.nodeName == 'input'
10 || foobar.nodeName == 'SELECT' || foobar.nodeName == 'select'
11 || foobar.nodeName == 'TEXTAREA' || foobar.nodeName == 'textarea'
12 )
13 )
14 ||
15 // Konqueror 3.2 and 3.3 need hiding only for the following two form elements, but, alas,
16 // at the time of this writing (Konqueror 3.2.3 and 3.3.0-rc2), hiding of such two form elements
17 // on Konqueror 3.2 and 3.3 does not work, it is affected by the following bug: http://bugs.kde.org/72885
18 ( (Konqueror32 || Konqueror33) &&
19 ( ((foobar.nodeName == 'SELECT' || foobar.nodeName == 'select') && foobar.size > 1)
20 || foobar.nodeName == 'TEXTAREA' || foobar.nodeName == 'textarea'
21 )
22 )
23 ||
24 ( IE &&
25 ( foobar.nodeName == 'SELECT' || foobar.nodeName == 'select' )
26 )
27 ) {
28 toBeHidden[toBeHidden.length] = foobar;
29 }
30 if (foobar.childNodes.length > 0) {
31 scanChildren(foobar);
32 }
33 }
34 }
36 function seeThroughCoordinatesDetection()
37 {
38 if (!((Konqueror && !Konqueror22) || IE5)) {
39 return;
40 }
41 for (i=0; i<toBeHidden.length; i++) {
42 object = toBeHidden[i];
43 toBeHiddenLeft[i] = object.offsetLeft;
44 while (object.tagName != 'BODY' && object.offsetParent) {
45 object = object.offsetParent;
46 toBeHiddenLeft[i] += object.offsetLeft;
47 }
48 object = toBeHidden[i];
49 toBeHiddenTop[i] = object.offsetTop;
50 while (object.tagName != 'BODY' && object.offsetParent) {
51 object = object.offsetParent;
52 toBeHiddenTop[i] += object.offsetTop;
53 }
54 }
55 }
57 //document.write("<br />\nSCANNING STARTED<br />\n");
58 //scanChildren(document.getElementsByTagName('BODY').item(0));
59 if ((Konqueror || IE5) && document.getElementById('phplmseethrough')) {
60 scanChildren(document.getElementById('phplmseethrough'));
61 }
62 //document.write("<br />\nSCANNING COMPLETED<br />\n");
64 seeThroughCoordinatesDetection();